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

Disassembly:
sub esp, 0x4e4
push ebx
push ebp
push esi
mov esi, ecx
mov eax, 2
push edi
mov edx, dword [esi + 0x2c]
mov dword [esp + 0x4c], esi
cmp dword [edx + 0x110], eax
jg 0x10003868
cmp dword [edx + 0x114], eax
jg 0x10003868
cmp dword [edx + 0x24], 4
jg 0x10003868
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x74]
rep stosd dword es:[edi], eax
mov ebx, dword [edx + 0x110]
mov ebp, dword [edx + 0x114]
mov eax, dword [esp + 0x50c]
shl ebx, 3
shl ebp, 3
push ebx
push eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x28], ebp
call fcn.1000e280
mov ecx, dword [esp + 0x518]
push ebp
push ecx
mov dword [esp + 0x58], eax
call fcn.1000e280
mov ecx, eax
mov eax, dword [esp + 0x514]
cdq
idiv ebx
add esp, 0x10
mov dword [esp + 0x60], ecx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x508]
cdq
idiv ebp
mov dword [esp + 0x5c], eax
xor eax, eax
test ecx, ecx
mov dword [esp + 0x50], eax
jle 0x10003868
mov edx, ebp
mov edi, dword [esp + 0x4fc]
imul edx, dword [esp + 0x500]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x68], edx
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x10], 0
add edi, eax
mov dword [esp + 0x6c], edi
mov edi, dword [esp + 0x48]
test edi, edi
jle 0x10003847
mov eax, dword [esp + 0x30]
lea edx, [ebx + ebx*2]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x58], edx
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x54]
add edx, eax
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x4f8]
mov dword [esp + 0x24], edx
mov edx, dword [eax + 0x24]
xor ecx, ecx
cmp edx, ecx
mov dword [esp + 0x34], ecx
jle 0x100037b9
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0xf4]
mov dword [esp + 0x2c], ecx
mov edi, dword [eax + 0xc4]
mov eax, dword [esp + 0x1c]
add edi, eax
mov edx, dword [edi + 8]
mov eax, dword [edi + 0x1c]
push edx
push eax
call fcn.1000e290
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 0x20]
push ecx
push edx
mov dword [esp + 0x54], eax
call fcn.1000e290
mov ecx, dword [edi + 0xc]
add esp, 0x10
mov edx, eax
xor ebp, ebp
test ecx, ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ebp
jle 0x10003773
mov esi, dword [esp + 0x2c]
mov eax, dword [edi + 8]
mov dword [esp + 0x14], esi
imul ecx, dword [esp + 0x6c]
add ecx, ebp
xor esi, esi
test eax, eax
mov ebx, ecx
jle 0x10003751
mov ebp, dword [esp + 0x14]
imul eax, dword [esp + 0x64]
add eax, esi
test ebx, ebx
mov ecx, eax
jl 0x1000371d
cmp ebx, edx
jge 0x1000371d
test ecx, ecx
jl 0x1000371d
mov edx, dword [esp + 0x44]
cmp ecx, edx
jl 0x10003723
lea eax, [esp + 0x74]
jmp 0x10003733
mov eax, ebx
imul eax, edx
add eax, ecx
mov ecx, dword [esp + 0x24]
shl eax, 7
add eax, ecx
mov ecx, dword [esp + 0x4c]
push ebp
push eax
call fcn.10003880
mov eax, dword [edi + 8]
mov edx, dword [esp + 0x38]
inc esi
add ebp, 0x40
cmp esi, eax
jl 0x10003700
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x14]
mov ecx, dword [edi + 0xc]
inc ebp
add ebx, 0x80
cmp ebp, ecx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x14], ebx
jl 0x100036ed
mov ebx, dword [esp + 0x70]
mov esi, dword [esp + 0x4c]
imul edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x24]
mov eax, dword [esi + 0x2c]
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x2c]
shl edx, 7
add ecx, edx
mov edx, dword [eax + 0x24]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x34]
inc ecx
add ebp, 0x54
add edi, 0x100
cmp ecx, edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x2c], edi
jl 0x1000369e
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x50c]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
jle 0x100037cf
cdq
idiv ebx
mov edi, edx
jmp 0x100037d1
mov edi, ebx
mov eax, dword [esp + 0x510]
mov ecx, dword [esp + 0x28]
cmp ecx, eax
jle 0x100037e5
cdq
idiv ebp
jmp 0x100037e7
mov edx, ebp
mov ebp, dword [esi + 0x30]
mov ecx, dword [esi + 4]
push ebp
mov ebp, dword [esp + 0x504]
mov eax, dword [ecx]
push ebp
push edx
push edi
mov edi, dword [esp + 0x50]
lea edx, [esp + 0x104]
push edi
push edx
mov edx, dword [esi + 0x2c]
push edx
call dword [eax + 8]
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x48]
inc eax
add ebp, ebx
add edi, edx
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x20]
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x40], edi
jl 0x10003662
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x68]
mov edi, dword [esp + 0x28]
inc eax
add edi, ebp
mov dword [esp + 0x50], eax
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x30]
add edi, edx
cmp eax, ecx
mov dword [esp + 0x30], edi
jl 0x10003631
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4e4
ret 0x1c