Function at 0x404bc0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x2c
push esi
mov esi, ecx
mov ecx, dword [esp + 0x34]
mov byte [esp + 7], 0
test ecx, ecx
jl 0x404f2e
mov edx, dword [esi + 0x1c]
cmp ecx, edx
jge 0x404f2e
mov eax, dword [esi + 0x20]
push edi
test eax, eax
jl 0x404bfa
cmp eax, edx
jge 0x404bfa
mov edx, dword [esi + 0x18]
mov edi, dword [edx + eax*4]
mov dword [esp + 0xc], edi
jmp 0x404c06
mov dword [esp + 0xc], 0
mov edi, dword [esp + 0xc]
mov eax, dword [esi + 0x18]
push ebp
mov ebp, dword [eax + ecx*4]
mov dword [esp + 0x14], ebp
mov eax, dword [ebp + 4]
test eax, eax
jne 0x404c34
push eax
mov ecx, esi
call fcn.00404fd0
push 1
mov ecx, esi
call fcn.00404f90
push 1
mov ecx, esi
call fcn.00405000
jmp 0x404c66
cmp eax, 2
jne 0x404c46
push 1
mov ecx, esi
call fcn.00405020
push 0
jmp 0x404c56
push 1
mov ecx, esi
mov byte [esp + 0x13], 1
call fcn.00404f90
push 1
mov ecx, esi
call fcn.00405000
push 1
mov ecx, esi
call fcn.00404fd0
mov al, byte [esp + 0x40]
test edi, edi
mov byte [ebp + 0x28], al
je 0x404c74
mov byte [edi + 0x28], al
mov eax, dword [ebp + 0x20]
mov edi, dword [0x40e2d0]
test eax, eax
push ebx
jne 0x404d30
mov al, byte [esp + 0x13]
test al, al
je 0x404c9d
mov edx, dword [esi]
lea ecx, [esp + 0x2c]
push ecx
push 0x450
push edx
jmp 0x404caa
mov ecx, dword [esi]
lea eax, [esp + 0x2c]
push eax
push 0x455
push ecx
call edi
push eax
call dword [0x40e2c8]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
mov ebx, dword [0x40e26c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esi]
lea eax, [esp + 0x24]
push 1
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x38]
push eax
push ecx
push 0
mov dword [esp + 0x2c], edx
call ebx
mov eax, dword [esi]
lea edx, [esp + 0x1c]
push 1
push edx
push eax
push 0
call ebx
mov ecx, dword [esi]
mov edx, dword [ebp + 0x18]
mov eax, dword [esi + 4]
push ebp
push 0x4049b0
push ecx
push edx
push eax
call dword [0x40e270]
mov dword [ebp + 0x20], eax
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x1c]
sub edx, ecx
push 1
push edx
mov edx, dword [esp + 0x2c]
sub ebx, edx
push ebx
push ecx
push edx
push eax
call dword [0x40e2cc]
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi]
mov ebx, dword [0x40e2f4]
push eax
push 0x44f
push ecx
call ebx
mov edx, dword [ebp + 0x10]
mov eax, dword [esi]
push edx
push 0x452
push eax
call ebx
mov ecx, dword [ebp + 0x14]
mov edx, dword [esi]
push ecx
push 0x457
push edx
call ebx
mov bl, byte [esp + 0x13]
mov eax, dword [esi]
neg bl
sbb ebx, ebx
and ebx, 5
push ebx
push 0x451
push eax
call edi
mov ebp, dword [0x40e24c]
push eax
call ebp
mov ecx, dword [esi]
push ebx
push 0x457
push ecx
call edi
push eax
call ebp
mov edx, dword [esi]
push ebx
push 0x454
push edx
call edi
push eax
call ebp
mov eax, dword [esi]
push ebx
push 0x44f
push eax
call edi
push eax
call ebp
mov bl, byte [esp + 0x13]
mov ecx, dword [esi]
neg bl
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 5
push ebx
push 0x453
push ecx
call edi
push eax
call ebp
mov edx, dword [esi]
push ebx
push 0x452
push edx
call edi
push eax
call ebp
mov al, byte [esp + 0x13]
test al, al
lea eax, [esp + 0x2c]
push eax
je 0x404e21
mov ecx, dword [esi]
push 0x451
push ecx
call edi
push eax
call dword [0x40e2c8]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], edx
mov edx, dword [esi]
lea ecx, [esp + 0x1c]
push 1
push ecx
xor ebx, ebx
add eax, 0xfffffffe
push edx
push ebx
mov dword [esp + 0x30], eax
call dword [0x40e26c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
jmp 0x404e7f
mov ecx, dword [esi]
push 0x455
push ecx
call edi
push eax
call dword [0x40e2c8]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
mov ebx, dword [0x40e26c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi]
lea eax, [esp + 0x24]
push 1
push eax
add edx, 4
push ecx
push 0
mov dword [esp + 0x30], edx
call ebx
mov eax, dword [esi]
lea edx, [esp + 0x1c]
push 1
push edx
push eax
push 0
call ebx
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
push 0
push ecx
mov ecx, dword [esi]
push edx
push 0
push eax
push 0
push 0x456
push ecx
call edi
push eax
call dword [0x40e274]
mov al, byte [esp + 0x44]
pop ebx
test al, al
je 0x404eb8
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 0x20]
mov dword [eax + 0x24], edx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
test eax, eax
mov dword [esi + 0x20], ecx
je 0x404ed3
mov eax, dword [eax + 0x20]
test eax, eax
je 0x404ed3
push 0
push eax
call ebp
mov edx, dword [esp + 0x14]
push 1
mov eax, dword [edx + 0x20]
push eax
call ebp
mov ecx, dword [esi]
push 1
push ecx
call edi
push eax
call dword [0x40e278]
test eax, eax
pop ebp
je 0x404f0a
mov edx, dword [esi]
push 1
push edx
call edi
push eax
call dword [0x40e2b4]
pop edi
mov al, 1
pop esi
add esp, 0x2c
ret 8
mov eax, dword [esi]
push 0
push 2
push eax
call edi
mov ecx, dword [esi]
push eax
push ecx
call dword [0x40e27c]
push eax
call dword [0x40e2b4]
pop edi
mov al, 1
pop esi
add esp, 0x2c
ret 8
xor al, al
pop esi
add esp, 0x2c
ret 8