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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x4254b8]
xor eax, esp
mov dword [esp + 0x78], eax
xor edx, edx
mov dword [esp + 8], ecx
push ebx
push esi
push edi
mov ebx, edx
mov dword [esp + 0x48], 0x3ea
mov edi, edx
mov dword [esp + 0x4c], 0x3e9
mov byte [esp + 0x13], dl
mov eax, edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x28], edx
push dword [esp + eax*4 + 0x48]
push dword [ecx + 0x20]
call dword [0x41d154]
mov esi, eax
test esi, esi
je 0x1004802
lea eax, [esp + 0x64]
push eax
push esi
call dword [0x41d140]
test eax, eax
je 0x1004802
mov eax, dword [esp + 0x64]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x18]
push dword [eax + 0x20]
call dword [0x41d13c]
test eax, eax
je 0x1004802
lea eax, [esp + 0x74]
push eax
push 0
push 0x1605
push esi
call dword [0x41d170]
test eax, eax
je 0x1004802
mov eax, dword [esp + 0x6c]
xor ecx, ecx
sub eax, dword [esp + 0x64]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x70]
sub eax, dword [esp + 0x68]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x18]
push eax
push ecx
push 0x1601
push esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
call dword [0x41d170]
test eax, eax
je 0x1004802
mov eax, dword [esp + 0x7c]
add eax, dword [esp + 0x74]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add edx, eax
mov eax, dword [esp + 0x80]
add eax, dword [esp + 0x78]
add ecx, eax
mov dword [esp + 0x18], edx
cmp ebx, edx
mov dword [esp + 0x1c], ecx
lea ebx, [esp + 0x18]
jl 0x1004722
lea ebx, [esp + 0x20]
mov ebx, dword [ebx]
cmp edi, ecx
mov dword [esp + 0x20], ebx
lea edi, [esp + 0x1c]
jl 0x1004734
lea edi, [esp + 0x24]
mov ecx, dword [esp + 0x40]
mov edi, dword [edi]
mov dword [esp + 0x24], edi
cmp ebx, ecx
jle 0x1004747
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x38]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x2c]
push eax
mov dword [esp + 0x54], esi
call fcn.010056a7
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
inc eax
mov dword [esp + 0x28], eax
cmp eax, 2
jb 0x1004643
mov al, byte [esp + 0x13]
test al, al
je 0x1004802
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
sub eax, esi
push 0x14
pop ecx
cdq
idiv ecx
and dword [esp + 0x14], 0
push eax
call dword [0x41d168]
mov ecx, eax
test ecx, ecx
je 0x1004806
cmp esi, dword [esp + 0x30]
je 0x10047f9
lea edi, [esi + 0x10]
mov edx, dword [esp + 0x14]
mov eax, ebx
sub eax, dword [edi - 4]
push 0x14
push dword [edi]
add edx, eax
mov eax, dword [edi - 0xc]
push ebx
push dword [edi - 8]
sub eax, edx
mov dword [esp + 0x24], edx
push eax
push 0
push dword [edi - 0x10]
push ecx
call dword [0x41d164]
mov ecx, eax
test ecx, ecx
je 0x1004806
add edi, 0x14
lea eax, [edi - 0x10]
cmp eax, dword [esp + 0x30]
jne 0x10047be
push ecx
call dword [0x41d17c]
jmp 0x1004806
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x1004811
push esi
call 0x100d441
pop ecx
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
call 0x100c837
mov esp, ebp
pop ebp
ret