Function at 0x415c60
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 0x18]
sub esp, 0x2c
test eax, eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
jne 0x416227
mov eax, dword [esp + 0x44]
mov ebp, dword [esp + 0x4c]
mov ebx, dword [esp + 0x50]
mov edi, dword [esp + 0x48]
cmp eax, 1
jne 0x415ca0
push 1
call fcn.00415c10
push ebp
mov ecx, esi
call fcn.00416680
mov dword [ebx], eax
jmp 0x415f74
cmp eax, 0x10
jne 0x415cba
push 1
mov ecx, esi
call fcn.00415c10
mov ecx, esi
call fcn.00417850
jmp 0x415f6e
cmp eax, 0x111
jne 0x415de3
cmp di, 0xe140
jne 0x415ce2
mov ecx, esi
call fcn.00468e40
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret 0x18
cmp di, 1
jne 0x415cfe
mov ecx, esi
call fcn.00468e40
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret 0x18
cmp di, 2
jne 0x415d1a
mov ecx, esi
call fcn.00416690
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret 0x18
cmp di, 0x68
jne 0x415d36
mov ecx, esi
call fcn.00416a50
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret 0x18
cmp di, 0x69
jne 0x415d52
mov ecx, esi
call fcn.00416a70
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret 0x18
cmp di, 0x71
jne 0x415d6e
mov ecx, esi
call fcn.00416a70
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret 0x18
cmp di, 0x6a
jne 0x415d8a
mov ecx, esi
call fcn.00416b80
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret 0x18
cmp di, 0x7d
jne 0x415da6
mov ecx, esi
call fcn.00416c10
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret 0x18
cmp di, 0x6c
jne 0x415dc2
mov ecx, esi
call fcn.00416be0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret 0x18
cmp di, 0x85
jne 0x415f92
mov ecx, esi
call fcn.00417880
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret 0x18
cmp eax, 0x18
jne 0x415dff
push 1
mov ecx, esi
call fcn.00415c10
push ebp
push edi
mov ecx, esi
call fcn.004178f0
jmp 0x415f6e
cmp eax, 0x112
jne 0x415e29
push 1
mov ecx, esi
call fcn.00415c10
mov ecx, ebp
shr ecx, 0x10
movsx ecx, cx
movsx eax, bp
push ecx
push eax
push edi
mov ecx, esi
call fcn.00417aa0
jmp 0x415f6e
cmp eax, 3
jne 0x415e61
push 1
mov ecx, esi
call fcn.00415c10
mov eax, dword [esi + 0x18]
test eax, eax
je 0x415f6e
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 8]
push edx
mov edx, dword [eax + 4]
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esi + 0x1c]
push edx
push eax
push ecx
call dword [0x4895e0]
jmp 0x415f6e
cmp eax, 5
jne 0x415e89
push 1
mov ecx, esi
call fcn.00415c10
mov edx, ebp
shr edx, 0x10
movsx ecx, dx
movsx eax, bp
push ecx
push eax
push edi
mov ecx, esi
call fcn.00417040
jmp 0x415f6e
cmp eax, 2
jne 0x415ea3
push 1
mov ecx, esi
call fcn.00415c10
mov ecx, esi
call fcn.00417200
jmp 0x415f6e
cmp eax, 0x11
jne 0x415ebc
push 1
mov ecx, esi
call fcn.00415c10
push ebp
push edi
mov ecx, esi
call fcn.00417860
jmp 0x415f3a
cmp eax, 0x7e9
jne 0x415edc
push 1
mov ecx, esi
call fcn.00415c10
push ebp
push edi
push 0x7e9
mov ecx, esi
call fcn.00417220
jmp 0x415f3a
cmp eax, 0x7ea
jne 0x415efc
push 1
mov ecx, esi
call fcn.00415c10
push ebp
push edi
push 0x7ea
mov ecx, esi
call fcn.00417d10
jmp 0x415f3a
cmp eax, 0x7eb
jne 0x415f1c
push 1
mov ecx, esi
call fcn.00415c10
push ebp
push edi
push 0x7eb
mov ecx, esi
call fcn.00417d30
jmp 0x415f3a
cmp eax, 0x7ec
jne 0x415f56
push 1
mov ecx, esi
call fcn.00415c10
push ebp
push edi
push 0x7ec
mov ecx, esi
call fcn.00417e10
mov ecx, esi
mov dword [ebx], eax
call fcn.0044a0a0
test eax, eax
je 0x415f8e
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret 0x18
cmp eax, 0x113
jne 0x415f92
push 1
mov ecx, esi
call fcn.00415c10
push edi
mov ecx, esi
call fcn.004175d0
mov dword [ebx], 0
mov ecx, esi
call fcn.0044a0a0
test eax, eax
je 0x415f8e
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret 0x18
mov eax, dword [esp + 0x44]
cmp eax, 5
lea ecx, [esi + 0x40]
jne 0x4161f5
test ecx, ecx
je 0x415fa7
lea esi, [ecx - 0x40]
jmp 0x415fa9
xor esi, esi
mov al, byte [ecx + 0x1c]
test al, al
je 0x415fde
mov eax, dword [esi + 4]
push 0xe801
push eax
call dword [0x489614]
cmp edi, 2
jne 0x415fcf
push 0
push eax
call dword [0x489544]
jmp 0x415fe7
test edi, edi
jne 0x415fde
push 5
push eax
call dword [0x489544]
jmp 0x415fe7
cmp edi, 1
je 0x416212
mov ecx, ebp
lea edi, [esi + 0x40]
shr ecx, 0x10
movsx edx, cx
movsx eax, bp
test edi, edi
mov dword [esp + 0x44], edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x48], edi
je 0x41600a
lea ebp, [edi - 0x40]
jmp 0x41600c
xor ebp, ebp
mov ecx, dword [ebp + 4]
push 0xfffffffffffffff0
push ecx
mov dword [esp + 0x18], ebp
call dword [0x48963c]
test eax, 0x40000000
je 0x416047
mov eax, dword [edi + 0x14]
cmp eax, 0xffffffff
je 0x416047
mov ecx, dword [edi + 0x18]
cmp ecx, 0xffffffff
je 0x416047
cmp dword [esp + 0x54], eax
jge 0x41603d
mov dword [esp + 0x54], eax
cmp dword [esp + 0x44], ecx
jge 0x416047
mov dword [esp + 0x44], ecx
mov edx, dword [ebp + 4]
push edx
call dword [0x489600]
mov esi, eax
test esi, esi
mov dword [esp + 0x18], esi
je 0x41606b
mov eax, dword [ebp + 4]
push 0
push 0
push 0xb
push eax
call dword [0x48952c]
mov ecx, dword [edi + 4]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x4c], eax
jle 0x4161b9
xor edx, edx
jmp 0x41608e
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
xor edx, edx
mov ecx, dword [edi]
lea esi, [eax + eax*2]
shl esi, 3
add ecx, esi
mov eax, dword [ecx + 4]
test ah, 0x10
je 0x41616d
shr eax, 0x10
and eax, 0xff
lea edx, [ecx + 8]
mov ebx, eax
mov eax, dword [edx]
cmp ebx, 1
mov dword [esp + 0x1c], eax
mov ebp, dword [edx + 4]
mov dword [esp + 0x20], ebp
mov edi, dword [edx + 8]
mov dword [esp + 0x24], edi
mov edx, dword [edx + 0xc]
mov dword [esp + 0x28], edx
jle 0x41611c
lea eax, [ecx + 0x24]
lea ecx, [ebx - 1]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax - 4]
cmp dword [esp + 0x1c], ecx
jl 0x4160e8
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax]
cmp ebp, ecx
jl 0x4160f4
mov ebp, ecx
mov dword [esp + 0x20], ebp
mov ecx, dword [eax + 4]
cmp edi, ecx
jg 0x416101
mov edi, ecx
mov dword [esp + 0x24], edi
mov ecx, dword [eax + 8]
cmp edx, ecx
jg 0x41610e
mov edx, ecx
mov dword [esp + 0x28], edx
mov ecx, dword [esp + 0x14]
add eax, 0x18
dec ecx
mov dword [esp + 0x14], ecx
jne 0x4160db
xor edi, edi
test ebx, ebx
jle 0x416163
mov edx, dword [esp + 0x10]
lea ebp, [edx + 0x40]
xor eax, eax
test edi, edi
jle 0x416139
mov eax, dword [esp + 0x48]
mov ecx, dword [eax]
lea eax, [ecx + esi - 0x18]
mov edx, dword [esp + 0x48]
push eax
push 1
lea ecx, [esp + 0x24]
mov eax, dword [edx]
mov edx, dword [esp + 0x4c]
add eax, esi
push eax
mov eax, dword [esp + 0x60]
push ecx
push edx
push eax
mov ecx, ebp
call fcn.004184b0
inc edi
add esi, 0x18
cmp edi, ebx
jl 0x416129
mov ecx, dword [esp + 0x4c]
lea ebx, [ecx + ebx - 1]
jmp 0x41619b
mov eax, dword [esp + 0x44]
push edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
push edx
lea edx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x60]
push edx
push eax
push ecx
lea ecx, [ebp + 0x40]
call fcn.004184b0
mov ebx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
inc ebx
mov dword [esp + 0x4c], ebx
cmp ebx, dword [edx + 4]
jl 0x416080
mov ebx, dword [esp + 0x50]
mov ebp, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
test esi, esi
je 0x4161cd
mov eax, dword [ebp + 4]
push 0
push 1
push 0xb
push eax
call dword [0x48952c]
mov ecx, dword [ebp + 4]
push 0x185
push 0
push 0
push ecx
call dword [0x4895e8]
pop edi
pop esi
mov dword [ebx], 0
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret 0x18
cmp eax, 0x24
jne 0x416227
cmp dword [ecx + 0x14], 0xffffffff
je 0x416212
cmp dword [ecx + 0x18], 0xffffffff
je 0x416212
mov edx, dword [ecx + 0x14]
mov dword [ebp + 0x18], edx
mov eax, dword [ecx + 0x18]
mov dword [ebp + 0x1c], eax
pop edi
pop esi
mov dword [ebx], 0
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret 0x18
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 0x18