Function at 0x42c5b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a27eb
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x4d32ac]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x4d32ac]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
xor ecx, ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x1c]
push ecx
push eax
mov dword [esp + 0x1c], eax
call dword [0x4a7454]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x28]
lea edx, [esp + 0x34]
sub esi, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
push edx
push eax
sub ebx, ecx
mov dword [esp + 0x40], ecx
call dword [0x4a7450]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
add ebx, ecx
add esi, eax
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x28], ebx
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], esi
jne 0x42c666
mov ecx, dword [edi + 0x10]
cmp dword [ecx - 0xc], ebx
je 0x42c799
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x3c]
push edx
push esi
call dword [0x4a746c]
push esi
call dword [0x4a745c]
mov esi, eax
push esi
call dword [0x4a70b4]
mov ebx, eax
test ebx, ebx
je 0x42c6fc
mov eax, dword [edi + 8]
cmp eax, 3
ja case.0x42c694.0
jmp dword [eax*4 + 0x42ca2c]
mov eax, dword [edi + 0x30]
jmp 0x42c6ad
mov eax, dword [edi + 0x34]
jmp 0x42c6ad
mov eax, dword [edi + 0x38]
jmp 0x42c6ad
mov eax, dword [edi + 0x2c]
test eax, eax
mov dword [edi + 0xc], eax
je 0x42c6f5
push eax
push ebx
call dword [0x4a70ac]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push 0xcc0020
push 0
push 0
push ebx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x30]
sub edx, ecx
push edx
push eax
push ecx
push esi
call dword [0x4a70a4]
mov eax, dword [esp + 0x18]
push eax
push ebx
call dword [0x4a70ac]
push ebx
call dword [0x4a70c4]
mov ecx, dword [edi + 0x10]
cmp dword [ecx - 0xc], 0
je 0x42c77d
push 1
push esi
call dword [0x4a7098]
xor ebx, ebx
cmp dword [edi + 0x4c], ebx
je 0x42c727
mov eax, dword [edi + 8]
cmp eax, 2
je 0x42c722
cmp eax, 1
jne 0x42c727
mov eax, dword [edi + 0x1c]
jmp 0x42c72a
mov eax, dword [edi + 0x18]
test eax, eax
je 0x42c738
push eax
push esi
call dword [0x4a70ac]
mov ebx, eax
mov eax, dword [edi + 0x24]
test eax, eax
je 0x42c743
sub dword [esp + 0x28], eax
mov eax, dword [edi + 0x28]
test eax, eax
je 0x42c74e
add dword [esp + 0x1c], eax
mov edx, dword [edi + 0x14]
push edx
push esi
call dword [0x4a7094]
mov edx, dword [edi + 0x20]
mov eax, dword [edi + 0x10]
mov ecx, dword [eax - 0xc]
push edx
lea edx, [esp + 0x20]
push edx
push ecx
push eax
push esi
call dword [0x4a7480]
test ebx, ebx
je 0x42c77d
push ebx
push esi
call dword [0x4a70ac]
push esi
mov esi, dword [esp + 0x18]
push esi
call dword [0x4a742c]
lea eax, [esp + 0x3c]
push eax
push esi
call dword [0x4a7458]
xor ebx, ebx
jmp 0x42c79d
mov esi, dword [esp + 0x14]
mov ecx, dword [edi + 0x48]
cmp dword [ecx - 0xc], ebx
je 0x42ca05
cmp dword [0x4dd570], ebx
jne 0x42c7e8
push 0x24
call fcn.0047f14d
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov dword [esp + 0x90], ebx
je 0x42c7d6
mov edx, dword [edi + 0x44]
push edx
push eax
call fcn.0042d0b0
jmp 0x42c7d8
xor eax, eax
mov dword [esp + 0x90], 0xffffffff
mov dword [0x4dd570], eax
lea eax, [esp + 0x1c]
push eax
push esi
call dword [0x4a7454]
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call dword [0x4a7448]
cmp dword [edi + 0x50], ebx
je 0x42c867
mov eax, dword [edi + 4]
cmp dword [0x4dd574], eax
jne 0x42c867
cmp dword [edi + 0x54], ebx
je 0x42c867
mov edi, dword [0x4a7484]
push 0x2710
push eax
call edi
mov esi, dword [0x4dd570]
mov eax, dword [esi + 8]
mov ebx, esi
add esi, 8
test eax, eax
je 0x42ca05
push eax
call dword [0x4a73e4]
test eax, eax
je 0x42ca05
mov edx, dword [esi]
push 0
push edx
call dword [0x4a73ec]
mov eax, dword [esi]
push 0x3e9
push eax
jmp 0x42c9fc
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push ecx
push edx
lea eax, [esp + 0x24]
push eax
call dword [0x4a744c]
test eax, eax
je 0x42c9ad
cmp dword [0x4dd570], ebx
je 0x42ca05
mov esi, 2
cmp dword [edi + 8], esi
je 0x42c988
call fcn.0042d9d0
test eax, eax
je 0x42c8b6
mov ecx, dword [0x4dd574]
cmp ecx, dword [edi + 4]
je 0x42c983
mov edx, dword [edi + 4]
push 0x2710
push edx
call dword [0x4a7484]
call fcn.0042d9d0
test eax, eax
je 0x42c8da
mov esi, dword [0x4dd570]
push ebx
call fcn.0042d2b0
mov ecx, dword [edi + 4]
mov eax, dword [esp + 0x28]
add eax, 0xa
mov dword [0x4dd574], ecx
mov ecx, dword [edi + 0x48]
mov dword [esp + 0x30], eax
call fcn.0042d7b0
mov ebx, dword [0x4a737c]
push 0x4e
call ebx
push 0x4f
mov esi, eax
call ebx
mov ebx, eax
xor eax, eax
lea edx, [esp + 0x18]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
push edx
lea eax, [esp + 0x18]
push eax
call fcn.0042d960
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
lea edx, [eax + ecx]
cmp edx, esi
jle 0x42c938
sub esi, eax
mov ecx, esi
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
lea esi, [edx + eax]
cmp esi, ebx
jle 0x42c954
mov eax, dword [esp + 0x20]
sub eax, edx
sub eax, 2
mov dword [esp + 0x30], eax
push eax
push ecx
call fcn.0042d8f0
mov esi, dword [0x4dd570]
push 1
call fcn.0042d2b0
mov eax, dword [edi + 4]
push 0
push 0x1f4
push 0x2710
push eax
call dword [0x4a7424]
jmp 0x42ca05
cmp dword [edi + 8], esi
jne 0x42ca05
mov edi, dword [edi + 4]
cmp dword [0x4dd574], edi
jne 0x42ca05
push 0x2710
push edi
call dword [0x4a7484]
mov esi, dword [0x4dd570]
push ebx
call fcn.0042d2b0
jmp 0x42ca05
mov edi, dword [edi + 4]
cmp dword [0x4dd574], edi
jne 0x42ca05
push 0x2710
push edi
mov edi, dword [0x4a7484]
call edi
mov esi, dword [0x4dd570]
mov eax, dword [esi + 8]
mov dword [0x4dd574], ebx
mov ebx, esi
add esi, 8
test eax, eax
je 0x42ca05
push eax
call dword [0x4a73e4]
test eax, eax
je 0x42ca05
mov ecx, dword [esi]
push 0
push ecx
call dword [0x4a73ec]
mov edx, dword [esi]
push 0x3e9
push edx
call edi
mov dword [ebx + 0x20], 0
xor eax, eax
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0047f0e0
mov esp, ebp
pop ebp
ret 0x10