Function at 0x401e00
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
mov ebx, ecx
mov ecx, dword [ebx + 4]
push edi
mov esi, eax
lea eax, [esp + 0x40]
lea ebp, [ebx + 4]
push eax
push ecx
call dword [0x4a7454]
lea edx, [esp + 0x18]
xor edi, edi
push edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call dword [0x4a7448]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x48]
push edx
call dword [0x4a744c]
test eax, eax
je 0x402047
movsx eax, si
shr esi, 0x10
movsx ecx, si
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov ecx, dword [ebx + 0x28]
test ecx, ecx
je 0x401f3c
mov eax, dword [ebx + 0x2c]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x401f3c
test ecx, ecx
je 0x401e8f
mov eax, dword [ebx + 0x2c]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x401e94
call fcn.0047ebfb
mov edx, dword [ebx + 0x28]
mov esi, dword [edx + edi*4]
test esi, esi
je 0x401ebe
mov eax, dword [esi + 0x38]
cmp eax, dword [ebx + 0x34]
jne 0x401ebe
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
lea eax, [esi + 0x28]
push eax
call dword [0x4a744c]
test eax, eax
jne 0x401ec3
add edi, 1
jmp 0x401e64
cmp dword [ebx + 0x4c], 0
mov dword [ebx + 0x74], edi
mov dword [esp + 0x14], 1
je 0x401f3c
cmp edi, dword [ebx + 0x70]
je 0x401f3c
mov edx, dword [ebp]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [0x4a7454]
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x30]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x34]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
mov edi, ebp
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
call fcn.004047b0
mov edi, dword [ebx + 0x4c]
push 0
call fcn.00431440
mov eax, dword [esi + 0x24]
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [esi + 0x20]
mov esi, dword [ebx + 0x4c]
lea edx, [esp + 0x24]
push edx
push eax
call fcn.004309e0
mov edi, dword [ebx + 0x4c]
push 1
call fcn.00431440
xor esi, esi
cmp dword [esp + 0x14], esi
mov dword [ebx + 0x48], 1
je 0x401f5e
push 0x7f89
push esi
call dword [0x4a743c]
push eax
call dword [0x4a7440]
mov ecx, dword [ebp]
xor eax, eax
lea edx, [esp + 0x30]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
push edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], 0x10
mov dword [esp + 0x38], 2
mov dword [esp + 0x3c], ecx
call dword [0x4a7438]
mov eax, dword [ebx + 0x74]
cmp eax, dword [ebx + 0x70]
jne 0x402026
cmp dword [esp + 0x14], esi
jne 0x402035
mov dword [ebx + 0x70], 0xffffffff
mov ebx, dword [ebx + 0x4c]
cmp ebx, esi
je 0x401ff8
mov eax, dword [ebx + 8]
cmp eax, esi
je 0x401ff8
push eax
call dword [0x4a73e4]
test eax, eax
je 0x401ff8
mov eax, dword [ebx + 8]
push 0x3e9
mov dword [ebx + 0xc4], esi
mov dword [ebx + 0xac], esi
mov esi, dword [0x4a7484]
push eax
call esi
mov ecx, dword [ebx + 8]
push 0x3ea
push ecx
call esi
mov edx, dword [ebx + 8]
push 0
push edx
call dword [0x4a73ec]
mov eax, dword [ebp]
push 0
push 0
push eax
call dword [0x4a7434]
mov ecx, dword [ebp]
push ecx
call dword [0x4a7430]
mov edx, dword [esp + 0x64]
mov dword [edx], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 4
cmp dword [esp + 0x14], esi
je 0x401fa4
mov dword [ebx + 0x70], eax
jmp 0x401ff8
mov eax, dword [esp + 0x64]
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 4
mov ecx, dword [esp + 0x64]
mov dword [ecx], edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50
ret 4