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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ebx
push esi
lea eax, [eax + eax*2]
mov dword [esp + 0x24], 0
shl eax, 8
push edi
lea edi, [edx + 0x2d8]
add edi, eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], edi
mov esi, dword [eax + 0x30]
mov eax, dword [edx]
mov dword [esp + 0x54], esi
test eax, eax
jle 0x10040042
mov edx, dword [esp + 0x20]
add edi, 0x58
add edx, 0x78
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edx
nop word [eax + eax]
mov eax, dword [edi - 0x24]
mov ebx, dword [edi + 0x268]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x100400ee
xor edi, edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], edi
lea eax, [edi + 1]
xor ecx, ecx
mov dword [esp + 0x18], eax
cdq
sub eax, edx
mov dword [esp + 0x10], ecx
sar eax, 1
mov dword [esp + 0x30], eax
test eax, eax
jle 0x1003fe81
mov ebx, dword [esp + 0x30]
lea eax, [esp + edi*4 + 0x5c]
mov dword [esp + 0x24], eax
mov edi, eax
nop dword [eax + eax]
mov esi, dword [edi]
lea edi, [edi - 4]
mov edx, dword [esp + 0x14]
mov eax, esi
mov ecx, dword [esp + ecx*4 + 0x60]
imul dword [edx]
add eax, 0x8000
adc edx, 0
shrd eax, edx, 0x10
mov edx, dword [esp + 0x10]
add eax, ecx
mov dword [esp + edx*4 + 0x60], eax
mov eax, ecx
mov ecx, dword [esp + 0x14]
imul dword [ecx]
mov ecx, dword [esp + 0x10]
add eax, 0x8000
adc edx, 0
inc ecx
shrd eax, edx, 0x10
mov dword [esp + 0x10], ecx
add eax, esi
mov dword [edi + 4], eax
cmp ecx, ebx
jl 0x1003fe30
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
add ecx, 4
mov dword [esp + edi*4 + 0x60], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], ecx
cmp edi, eax
jl 0x1003fe03
mov esi, dword [esp + 0x54]
xor ecx, ecx
mov ebx, dword [esp + 0x50]
mov edx, esi
sub edx, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x3c], edx
test edx, edx
jle 0x10040014
mov esi, ebx
mov dword [esp + 0x30], ebx
nop word [eax + eax]
xorps xmm0, xmm0
xor edx, edx
movlpd qword [esp + 0x48], xmm0
mov edi, dword [esp + 0x4c]
movlpd qword [esp + 0x40], xmm0
movlpd qword [esp + 0x58], xmm0
mov dword [esp + 0x24], edx
cmp eax, 2
jl 0x1003ff80
lea ecx, [eax - 2]
mov ebx, esi
mov esi, dword [esp + 0x48]
lea edx, [esp + eax*4 + 0x58]
shr ecx, 1
inc ecx
mov dword [esp + 0x18], edx
lea eax, [ecx + ecx]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], eax
mov eax, dword [ebx]
lea ebx, [ebx + 8]
imul dword [edx + 4]
add dword [esp + 0x10], eax
mov eax, dword [ebx - 4]
adc dword [esp + 0x14], edx
mov edx, dword [esp + 0x18]
imul dword [edx]
add esi, eax
adc edi, edx
mov edx, dword [esp + 0x18]
sub edx, 8
mov dword [esp + 0x18], edx
sub ecx, 1
jne 0x1003ff23
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], edi
cmp edx, dword [esp + 0x2c]
jl 0x1003ff96
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
jmp 0x1003ffb1
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x48]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], eax
jmp 0x1003ff9a
mov ecx, dword [esp + 0x1c]
lea eax, [edx + ecx]
mov ecx, dword [esp + 0x2c]
mov eax, dword [ebx + eax*4]
sub ecx, edx
imul dword [esp + ecx*4 + 0x5c]
mov ecx, edx
mov edx, dword [esp + 0x24]
inc edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
add esi, eax
adc edi, dword [esp + 0x14]
add esi, dword [esp + 0x18]
adc edi, ecx
add esi, 0x8000
adc edi, 0
shrd esi, edi, 0x10
lea eax, [esi + 0x800000]
test eax, 0xff000000
je 0x1003ffe8
sar esi, 0x1f
xor esi, 0x7fffff
mov ecx, dword [esp + 0x1c]
lea eax, [edx + ecx]
inc ecx
sub dword [ebx + eax*4], esi
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
add esi, 4
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x30], esi
cmp ecx, dword [esp + 0x3c]
jl 0x1003fed0
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x34]
mov eax, dword [ebp + 0xc]
add edi, 4
mov edx, dword [esp + 0x28]
add dword [esp + 0x38], 0x40
inc edx
mov dword [esp + 0x28], edx
mov eax, dword [eax]
cmp edx, eax
mov edx, dword [esp + 0x38]
mov dword [esp + 0x34], edi
jl 0x1003fde0
mov edi, dword [esp + 0x20]
cmp dword [edi], 0
je 0x10040126
mov ecx, eax
mov dword [esp + 0x28], 0
cdq
sub eax, edx
sar eax, 1
test eax, eax
jle 0x100400b7
mov ebx, dword [esp + 0x20]
add edi, 0x2c4
add ebx, 0x24
nop dword [eax + eax]
mov ecx, dword [ebx]
test ecx, ecx
je 0x1004008e
mov eax, dword [ebp + 8]
push esi
push ecx
push dword [edi - 4]
mov eax, dword [eax + 0x2068]
push dword [edi]
mov eax, dword [eax + 0x2c]
call eax
add esp, 0x10
mov eax, dword [ebp + 0xc]
add ebx, 4
mov ecx, dword [esp + 0x28]
add edi, 8
inc ecx
mov dword [esp + 0x28], ecx
mov eax, dword [eax]
mov dword [esp + 0x3c], eax
cdq
sub eax, edx
sar eax, 1
cmp ecx, eax
jl 0x10040070
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x20]
mov ebx, dword [ebp + 0xc]
mov eax, ecx
test ecx, ecx
jle 0x10040129
lea esi, [edi + 0x2c0]
xor edx, edx
lea edi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x20]
lea esi, [edi + 4]
mov ecx, dword [esi]
lea esi, [esi + 4]
mov eax, dword [esp + edx*4 + 0x60]
inc edx
mov dword [edi + ecx*4 + 0x2c0], eax
mov eax, dword [ebx]
cmp edx, eax
jl 0x100400d5
jmp 0x10040129
xor edx, edx
cmp dword [edi], edx
jle 0x10040018
nop dword [eax + eax]
mov eax, 1
cmp esi, eax
jle 0x1004011c
nop dword [eax]
mov ecx, dword [ebx + eax*4 - 4]
add dword [ebx + eax*4], ecx
inc eax
cmp eax, esi
jl 0x10040110
inc edx
cmp edx, dword [edi]
jl 0x10040100
jmp 0x10040018
mov ebx, dword [ebp + 0xc]
cmp dword [ebx + 0x2d0], 1
jne 0x10040161
xor edx, edx
test eax, eax
jle 0x10040161
lea esi, [ebx + 0x2b0]
add edi, 0x2c0
mov ecx, dword [esi]
lea edi, [edi + 4]
mov ebx, dword [ebp + 8]
lea esi, [esi + 4]
mov eax, dword [edi - 4]
inc edx
mov dword [ebx + ecx*4 + 0x2070], eax
mov ebx, dword [ebp + 0xc]
cmp edx, dword [ebx]
jl 0x10040144
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret