Function at 0x4561e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x581980]
xor eax, esp
mov dword [esp + 0x38], eax
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x14]
mov dword [eax + 8], ecx
mov ecx, edi
mov dword [eax + 0xc], edx
call fcn.00412250
mov eax, dword [edi + 0x154]
mov ecx, dword [edi + 0x158]
mov edx, dword [edi + 0x15c]
mov esi, dword [edi + 0x160]
add eax, dword [edi + 0x4b0]
add ecx, dword [edi + 0x4b4]
sub edx, dword [edi + 0x4b8]
sub esi, dword [edi + 0x4bc]
xor ebx, ebx
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], edx
mov dword [ebp + 0x14], esi
mov dword [esp + 0x18], ebx
cmp dword [edi + 0x4a8], ebx
jle 0x456402
lea ebx, [ebx]
mov eax, dword [edi + 0x4a4]
mov esi, dword [eax + ebx*4]
mov edx, dword [esi]
mov eax, dword [edx + 0xc8]
mov ecx, esi
call eax
test al, al
je 0x4563f1
mov edx, dword [esi]
mov eax, dword [edx + 0xf4]
mov ecx, esi
call eax
test al, al
je 0x4562af
mov edx, dword [edi]
mov eax, dword [edx + 0x1b0]
push ebx
mov ecx, edi
call eax
jmp 0x4563f1
cmp ebx, dword [edi + 0x4d4]
jne 0x4563f1
mov edx, dword [esi]
mov edx, dword [edx + 0x48]
lea eax, [esp + 0x34]
push eax
mov ecx, esi
call edx
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
sub ecx, dword [esp + 0x40]
add ebx, dword [esp + 0x38]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
add edx, dword [esp + 0x34]
sub eax, dword [esp + 0x3c]
mov dword [ebp + 0x14], ecx
sub ecx, ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], eax
sub eax, edx
mov ebx, ecx
push ebx
mov dword [ebp + 8], edx
mov edx, dword [esi]
mov edx, dword [edx + 0x114]
push eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call edx
cmp dword [esp + 0x10], 0
jne 0x456327
mov eax, dword [esp + 0x1c]
xor ecx, ecx
test eax, eax
sets cl
dec ecx
and ecx, eax
mov dword [esp + 0x10], ecx
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
cmp dword [esp + 0x10], eax
jge 0x456343
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
mov dword [esp + 0x10], eax
mov edx, dword [esi]
mov eax, dword [edx + 0x70]
mov ecx, esi
call eax
cmp dword [esp + 0x10], eax
jle 0x45635f
mov edx, dword [esi]
mov eax, dword [edx + 0x70]
mov ecx, esi
call eax
mov dword [esp + 0x10], eax
cmp dword [esp + 0x14], 0
jne 0x456374
xor ecx, ecx
test ebx, ebx
sets cl
dec ecx
and ecx, ebx
mov dword [esp + 0x14], ecx
mov edx, dword [esi]
mov eax, dword [edx + 0x78]
mov ecx, esi
call eax
cmp dword [esp + 0x14], eax
jge 0x456390
mov edx, dword [esi]
mov eax, dword [edx + 0x78]
mov ecx, esi
call eax
mov dword [esp + 0x14], eax
mov edx, dword [esi]
mov eax, dword [edx + 0x80]
mov ecx, esi
call eax
mov ebx, dword [esp + 0x14]
cmp ebx, eax
jle 0x4563b6
mov edx, dword [esi]
mov eax, dword [edx + 0x80]
mov ecx, esi
call eax
mov ebx, eax
mov dword [esp + 0x14], ebx
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x10]
mov edx, dword [ebp + 0xc]
add eax, ecx
mov dword [esp + 0x2c], eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
add ebx, edx
mov dword [eax + 4], edx
mov dword [esp + 0x40], ebx
mov edx, dword [esp + 0x40]
mov ebx, dword [esi]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [ebx + 0x34]
mov ecx, esi
call eax
mov ebx, dword [esp + 0x18]
inc ebx
mov dword [esp + 0x18], ebx
cmp ebx, dword [edi + 0x4a8]
jl 0x456270
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f2889
mov esp, ebp
pop ebp
ret 0x10