Function at 0x4c2590
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff68
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov esi, edx
mov ebx, eax
cmp dword [ebx + 0x54], 0
je 0x4c2bc8
mov byte [0x50c7e0], 1
mov eax, dword [ebx + 0x248]
test eax, eax
je 0x4c25e3
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x78], eax
push 0
push 0
mov eax, dword [ebp - 0x78]
call fcn.004453d4
push eax
call fcn.00407824
mov eax, dword [ebx + 0x248]
call fcn.004ff70c
jmp 0x4c2640
mov eax, ebx
call fcn.004f5b00
mov ecx, dword [0x50cc98]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x4547e4]
call fcn.004572c4
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [eax + 0xc], 0xffffff9e
xor edx, edx
mov eax, dword [ebp - 0x78]
call fcn.00458ab0
push 0xffffffffffffffec
mov eax, dword [ebp - 0x78]
call fcn.004453d4
push eax
call fcn.004075d4
or eax, 0x80
or eax, 0x8000000
push eax
push 0xffffffffffffffec
mov eax, dword [ebp - 0x78]
call fcn.004453d4
push eax
call fcn.004077fc
mov eax, dword [ebx + 0x54]
mov edi, dword [eax + 0x40]
test edi, edi
je 0x4c2bc8
mov eax, dword [ebx + 0x54]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x2c]
pop edx
call fcn.004cebb8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
call fcn.004284b8
call fcn.00423b6c
push 0
push ebx
xor ecx, ecx
mov edx, dword [ebx + 0x22c]
mov eax, dword [ebp - 0x1c]
call fcn.004c1dec
cmp dword [ebx + 0x248], 0
jne 0x4c26c8
push 0
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0x98]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.00417c2c
lea edx, [ebp - 0x98]
mov cl, 0xff
mov eax, dword [ebp - 0x1c]
call fcn.004b5aa8
cmp dword [ebp - 0x1c], 0
je 0x4c2bc8
mov eax, dword [ebp - 0x1c]
call fcn.004284b8
call fcn.00423ee4
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [ebp - 0x68], eax
movzx eax, si
mov ecx, 0xc
xor edx, edx
div ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x64], 0x718
lea ecx, [ebp - 0x74]
xor edx, edx
xor eax, eax
call fcn.00417c04
cmp dword [ebp - 0x10], 0
jle 0x4c2723
mov byte [ebp - 0x52], 0
jmp 0x4c2729
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x52], al
mov byte [ebp - 0x54], 0
mov byte [ebp - 0x53], 0
mov byte [ebp - 0x51], 1
xor eax, eax
mov dword [ebp - 0x5c], eax
xor eax, eax
mov dword [ebp - 0x60], eax
cmp dword [ebx + 0x248], 0
je 0x4c2853
mov eax, dword [ebx + 0x22c]
mov eax, dword [eax + 0x44]
mov esi, dword [ebx + 0x22c]
add eax, dword [esi + 0x4c]
push eax
lea eax, [ebp - 0x88]
push eax
mov eax, dword [ebx + 0x22c]
mov edi, dword [eax + 0x40]
mov ecx, edi
add ecx, dword [esi + 0x48]
mov edx, dword [esi + 0x44]
mov eax, edi
call fcn.00417c2c
mov eax, dword [ebx + 0x22c]
call fcn.004453d4
push eax
call fcn.0040767c
test eax, eax
je 0x4c27ae
mov dl, 1
mov eax, ebx
call fcn.004eaf18
mov esi, eax
xor edx, edx
mov eax, ebx
call fcn.004eaf18
add eax, 4
cmp esi, eax
jl 0x4c27b2
xor eax, eax
jmp 0x4c27b4
mov al, 1
mov byte [ebx + 0x1ec], al
cmp byte [ebx + 0x1ec], 0
je 0x4c2804
mov eax, dword [ebx + 0x22c]
call fcn.004453d4
xor ecx, ecx
mov edx, dword [ebx + 0x248]
call fcn.004e943c
mov esi, eax
lea edx, [ebp - 0x98]
mov eax, ebx
call fcn.004faeec
mov edi, dword [ebp - 0x94]
mov eax, dword [ebx + 0x248]
call fcn.004e94e4
add edi, eax
add esi, edi
mov dword [ebp - 0x5c], esi
jmp 0x4c2812
mov eax, dword [ebx + 0x248]
call fcn.004ff578
mov dword [ebp - 0x5c], eax
mov eax, dword [ebx + 0x22c]
call fcn.004453d4
xor ecx, ecx
mov edx, dword [ebx + 0x248]
call fcn.004e943c
push eax
mov eax, dword [ebx + 0x248]
call fcn.004e94c4
mov esi, eax
pop eax
sub esi, eax
lea edx, [ebp - 0x98]
mov eax, ebx
call fcn.004faeec
add esi, dword [ebp - 0x98]
mov dword [ebp - 0x60], esi
jmp 0x4c286b
lea eax, [ebp - 0x88]
push eax
mov eax, dword [ebx + 0x22c]
call fcn.004453d4
push eax
call fcn.004075e4
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov ecx, dword [ebp - 0x84]
sub ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x88]
sub edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x78]
mov esi, dword [eax]
call dword [esi + 0x84]
push 0xffffffffffffffec
mov eax, dword [ebx + 0x22c]
call fcn.004453d4
push eax
call fcn.004075d4
and eax, 8
cmp eax, 8
jne 0x4c28c4
mov dl, 3
mov eax, dword [ebp - 0x78]
call fcn.00458dac
or edi, 0xffffffff
jmp 0x4c28d9
push 3
mov eax, dword [ebx + 0x22c]
call fcn.004453d4
push eax
call fcn.004075c4
mov edi, eax
push 0
call fcn.004074bc
mov esi, eax
push 0xffffffffffffffec
mov eax, dword [ebp - 0x78]
call fcn.004453d4
push eax
call fcn.004075d4
or eax, 0x80000
or eax, 0x8000000
push eax
push 0xffffffffffffffec
mov eax, dword [ebp - 0x78]
call fcn.004453d4
push eax
call fcn.004077fc
push 2
lea eax, [ebp - 0x54]
push eax
push 0x1fffffff
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.004284b8
call fcn.00423fec
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
push esi
mov eax, dword [ebp - 0x78]
call fcn.004453d4
push eax
mov eax, dword [0x50c9b8]
mov eax, dword [eax]
call eax
push 4
mov eax, dword [ebp - 0x78]
call fcn.004453d4
push eax
call fcn.00407844
mov eax, dword [ebp - 0x64]
or eax, 8
push eax
mov eax, dword [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 0x44]
push eax
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 0x40]
push eax
push edi
mov eax, dword [ebp - 0x78]
call fcn.004453d4
push eax
call fcn.0040780c
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x6c]
call fcn.004cebb8
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0x98]
push eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.00417c2c
lea eax, [ebp - 0x98]
push eax
mov eax, dword [ebp - 0x58]
call fcn.004284b8
call fcn.00423fec
xor ecx, ecx
pop edx
call fcn.004ca010
push 3
mov eax, dword [ebp - 0x58]
call fcn.004284b8
call fcn.00423fec
push eax
call fcn.004072a4
cmp dword [ebp - 0x10], 0
jle 0x4c2a52
push ebp
call fcn.004c2218
pop ecx
xor edi, edi
cmp edi, dword [ebp - 0x10]
jg 0x4c2a4c
push ebp
call fcn.004c2378
pop ecx
push 2
lea eax, [ebp - 0x54]
push eax
push 0x1fffffff
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x58]
call fcn.004284b8
call fcn.00423fec
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
push esi
mov eax, dword [ebp - 0x78]
call fcn.004453d4
push eax
mov eax, dword [0x50c9b8]
mov eax, dword [eax]
call eax
push ebp
call fcn.004c2534
pop ecx
inc edi
cmp dword [ebp - 0x10], 0
jle 0x4c2a47
push 0xc
call fcn.00406fe4
cmp edi, dword [ebp - 0x10]
jle 0x4c29f5
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x52], al
mov eax, dword [ebp - 0x64]
or eax, 4
push eax
mov eax, dword [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x84]
sub eax, dword [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x88]
sub eax, dword [ebp - 0x60]
push eax
push 0
mov eax, dword [ebp - 0x78]
call fcn.004453d4
push eax
call fcn.0040780c
push 2
lea eax, [ebp - 0x54]
push eax
push 0x1fffffff
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.004284b8
call fcn.00423fec
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
push esi
mov eax, dword [ebp - 0x78]
call fcn.004453d4
push eax
mov eax, dword [0x50c9b8]
mov eax, dword [eax]
call eax
lea eax, [ebp - 0x58]
call fcn.0040e7e8
push esi
push 0
call fcn.0040774c
test ebx, ebx
je 0x4c2aed
mov byte [ebx + 0x200], 0
mov eax, dword [ebx + 0x22c]
cmp byte [eax + 0x2e0], 0
je 0x4c2aed
mov dl, byte [ebp - 0xc]
call fcn.0045bf2c
push 0
push 1
push 0xb
mov eax, dword [ebx + 0x22c]
call fcn.004453d4
push eax
call fcn.00407774
mov byte [0x50c7e0], 0
push 0x785
push 0
push 0
mov eax, dword [ebx + 0x22c]
call fcn.004453d4
push eax
call fcn.00407724
lea eax, [ebp - 0x1c]
call fcn.0040e7e8
call fcn.004e9610
test al, al
je 0x4c2b3d
push 0xc
call fcn.00406fe4
mov eax, dword [ebp - 0x64]
or eax, 1
or eax, 2
push eax
mov eax, dword [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x84]
sub eax, dword [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x88]
sub eax, dword [ebp - 0x60]
push eax
mov eax, dword [ebx + 0x22c]
call fcn.004453d4
push eax
mov eax, dword [ebp - 0x78]
call fcn.004453d4
push eax
call fcn.0040780c
cmp dword [ebx + 0x248], 0
jne 0x4c2b90
lea eax, [ebp - 0x78]
call fcn.0040e7e8
jmp 0x4c2bb0
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [ebx + 0x248]
call fcn.004ffb24
push eax
mov eax, dword [ebp - 0x78]
call fcn.004453d4
push eax
call fcn.00407824
cmp word [ebx + 0x8a], 0
je 0x4c2bc8
xor edx, edx
mov eax, dword [ebx + 0x8c]
call dword [ebx + 0x88]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4