Function at 0x42558c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov edi, ecx
mov ebx, eax
xor eax, eax
push ebp
push 0x4257bf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x38]
mov dword [edi], eax
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4255d4
push 0
mov edx, dword [ebx + 0xc]
mov edx, dword [edx + 0x38]
push edx
push 0x30
push eax
call fcn.0040a208
push 5
mov eax, dword [ebx + 0x14]
push eax
call fcn.0040a2f0
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x4255e2
add dword [edi], eax
jmp 0x4257a4
mov esi, dword [ebx + 0xc]
mov eax, dword [esi + 0x24]
call fcn.00407c58
mov edx, dword [esi + 0x24]
mov eax, dword [edx + eax*4]
mov edx, dword [eax]
call dword [edx + 0x28]
cmp ebx, eax
je 0x4257a4
mov eax, ebx
mov edx, dword [0x42437c]
call fcn.00404718
test al, al
je 0x425627
mov edx, dword [ebp + 8]
mov eax, ebx
call fcn.004261d4
test al, al
je 0x425627
add dword [edi], 4
jmp 0x4257a4
lea edx, [ebp - 4]
mov eax, dword [esi]
call fcn.00404450
mov eax, dword [ebp - 4]
push eax
mov eax, dword [esi + 0x24]
mov edx, dword [ebx + 0x28]
mov eax, dword [eax + edx*4 + 4]
mov edx, dword [eax]
call dword [edx + 0x28]
mov eax, dword [eax]
lea edx, [ebp - 8]
call fcn.00404450
mov edx, dword [ebp - 8]
pop eax
call fcn.00406cdc
jne 0x4256de
mov eax, ebx
mov edx, dword [0x42423c]
call fcn.00404718
test al, al
je 0x425676
add dword [edi], 4
jmp 0x4257a4
mov eax, ebx
mov edx, dword [0x424534]
call fcn.00404718
test al, al
je 0x42568f
add dword [edi], 6
jmp 0x4257a4
mov eax, ebx
mov edx, dword [0x4246a4]
call fcn.00404718
test al, al
je 0x4256a8
add dword [edi], 8
jmp 0x4257a4
mov eax, ebx
mov edx, dword [0x42437c]
call fcn.00404718
test al, al
je 0x4256c1
add dword [edi], 8
jmp 0x4257a4
mov eax, ebx
mov edx, dword [0x424824]
call fcn.00404718
test al, al
je 0x4257a4
add dword [edi], 8
jmp 0x4257a4
mov eax, dword [esi + 0x24]
mov edx, dword [ebx + 0x28]
mov eax, dword [eax + edx*4 + 4]
mov edx, dword [eax]
call dword [edx + 0x28]
mov edx, dword [0x42437c]
call fcn.00404718
test al, al
je 0x4257a1
mov eax, dword [esi + 0x24]
mov edx, dword [ebx + 0x28]
mov eax, dword [eax + edx*4 + 4]
mov edx, dword [eax]
call dword [edx + 0x28]
mov edx, dword [ebp + 8]
call fcn.004261d4
test al, al
je 0x4257a1
mov eax, dword [esi + 0x24]
mov edx, dword [ebx + 0x28]
mov eax, dword [eax + edx*4 - 4]
mov edx, dword [eax]
call dword [edx + 0x28]
mov edx, dword [0x42437c]
call fcn.00404718
test al, al
je 0x4257a1
mov eax, dword [esi + 0x24]
mov edx, dword [ebx + 0x28]
mov eax, dword [eax + edx*4 - 4]
mov edx, dword [eax]
call dword [edx + 0x28]
mov edx, dword [ebp + 8]
call fcn.004261d4
test al, al
je 0x4257a1
mov eax, dword [esi + 0x24]
call fcn.00407c50
mov edx, dword [ebx + 0x28]
add edx, 2
cmp eax, edx
jle 0x4257a1
mov eax, dword [esi + 0x24]
mov edx, dword [ebx + 0x28]
mov eax, dword [eax + edx*4 + 8]
mov edx, dword [eax]
call dword [edx + 0x28]
mov eax, dword [eax]
lea edx, [ebp - 0xc]
call fcn.00404450
mov eax, dword [ebp - 0xc]
push eax
lea edx, [ebp - 0x10]
mov eax, dword [esi]
call fcn.00404450
mov edx, dword [ebp - 0x10]
pop eax
call fcn.00406cdc
jne 0x4257a1
add dword [edi], 8
jmp 0x4257a4
add dword [edi], 0xc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4257c6
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00406688
ret