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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x9c
mov eax, dword [esp + 0xb0]
mov edi, dword [eax + 0x5c]
mov edx, eax
mov eax, dword [eax + 0x54]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov eax, dword [edx]
mov dword [esp + 8], 0xb171f0
mov dword [esp + 4], 6
mov dword [esp], 7
mov dword [esp + 0xc], eax
call fcn.00405fb0
mov ecx, dword [esp + 0xb0]
xor edx, edx
mov ebx, dword [ecx + 0x1c]
mov esi, ecx
mov ecx, dword [ecx + 0x18]
push edx
push ebx
fild qword [esp]
add esp, 8
push ecx
fild dword [esp]
add esp, 4
fdivp st(1)
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 8], 0xb17216
mov dword [esp + 4], 6
mov dword [esp], 7
fstp qword [esp + 0x14]
call fcn.00405fb0
mov ebx, dword [esi + 0x64]
test ebx, ebx
jle 0x5037f9
lea eax, [ebx + ebx*2]
lea edx, [eax*4]
add edx, dword [esi + 0x68]
jmp 0x5037ac
sub edx, 0xc
test ebx, ebx
mov edi, ecx
je 0x5037f9
mov ecx, dword [edx - 0xc]
sub ebx, 1
cmp ecx, edi
jge 0x5037a3
mov eax, dword [edx - 8]
mov esi, dword [esp + 0xb0]
mov ebp, dword [edx - 4]
mov dword [esp + 0x44], eax
lea eax, [ecx + ecx*2]
shl eax, 3
add eax, dword [esi + 0x60]
mov esi, ecx
mov dword [esp + 0x6c], ebp
add eax, 8
mov ebp, dword [esp + 0x6c]
add esi, 1
mov dword [eax], ebp
mov ebp, dword [esp + 0x44]
mov dword [eax - 4], ebp
add eax, 0x18
cmp esi, edi
jl 0x5037d9
sub edx, 0xc
test ebx, ebx
mov edi, ecx
jne 0x5037ac
mov eax, dword [esp + 0xb0]
xor esi, esi
mov ebx, dword [eax + 0x5c]
test ebx, ebx
jle 0x503821
mov ecx, dword [eax + 0x60]
xor edx, edx
xor eax, eax
add edx, 1
mov dword [eax + ecx], esi
add esi, dword [eax + ecx + 4]
add eax, 0x18
cmp edx, ebx
jne 0x503810
mov ecx, dword [esp + 0xb0]
xor ebx, ebx
mov edx, dword [ecx + 0x6c]
test edx, edx
jle 0x50384a
mov ebx, dword [ecx + 0x70]
xor eax, eax
mov dword [esp + 0x50], ebx
mov edi, dword [esp + 0x50]
xor ebx, ebx
add ebx, dword [edi + eax*8]
add eax, 1
cmp eax, edx
jne 0x503840
cmp ebx, esi
je 0x50387a
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0xb17234
mov dword [esp + 4], 2
mov dword [esp], 7
call fcn.00405fb0
cmp esi, ebx
jl 0x503d45
mov ebp, dword [esp + 0xb0]
mov eax, dword [ebp + 0x54]
test eax, eax
jne 0x503922
cmp dword [ebp + 4], 2
je 0x5038df
mov dword [ebp + 0x54], esi
mov dword [esp + 4], 0x10
mov dword [esp], esi
call sub.msvcrt.dll_calloc
test esi, esi
mov ebx, eax
mov dword [ebp + 0x58], eax
jle 0x5038ca
mov edi, dword [esp + 0xb0]
xor ecx, ecx
mov eax, dword [edi + 0x20]
mov edx, ecx
add ecx, 1
shl edx, 4
cmp ecx, esi
mov dword [edx + ebx + 4], eax
jne 0x5038b7
mov ebp, dword [esp + 0xb0]
mov eax, dword [ebp + 0x54]
mov dword [ebp + 0x20], 0
test eax, eax
jne 0x503922
mov edx, dword [esp + 0xb0]
mov eax, dword [edx + 0x6c]
cmp eax, 1
je 0x503dcc
cmp eax, 2
je 0x503db5
mov dword [esp + 8], 0xb17270
mov dword [esp + 4], 1
mov dword [esp], 7
call fcn.00405fb0
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp esi, eax
jg 0x503d63
mov ecx, dword [esp + 0xb0]
mov ebp, dword [ecx + 0x6c]
test ebp, ebp
jle 0x5039ad
mov edi, dword [ecx + 0x70]
xor esi, esi
xor ebx, ebx
mov dword [esp + 0x84], 0
mov dword [esp + 0x50], edi
mov ecx, dword [esp + 0x84]
mov edi, dword [esp + 0x50]
shl ecx, 3
mov edi, dword [edi + ecx]
mov dword [esp + 0x44], ecx
test edi, edi
je 0x503992
mov ebp, dword [esp + 0xb0]
mov ecx, esi
xor edx, edx
shl ecx, 4
mov edi, dword [ebp + 0x58]
mov eax, dword [esp + 0x44]
add esi, 1
add edx, 1
add eax, dword [ebp + 0x70]
mov dword [edi + ecx], ebx
add ecx, 0x10
add ebx, dword [eax + 4]
cmp dword [eax], edx
ja 0x503978
mov edx, dword [esp + 0xb0]
add dword [esp + 0x84], 1
mov eax, dword [esp + 0x84]
cmp dword [edx + 0x6c], eax
jg 0x50394e
mov eax, dword [esp + 0xb0]
mov ebx, dword [eax + 0x5c]
test ebx, ebx
jle 0x503acd
mov dword [esp + 0x88], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x7c], 0
mov edx, dword [esp + 0xb0]
mov eax, dword [esp + 0x7c]
add eax, dword [edx + 0x60]
mov ecx, dword [eax + 4]
mov ebx, dword [eax + 0x10]
mov esi, dword [eax + 0x14]
test ecx, ecx
je 0x503aa9
mov ebp, dword [esp + 0x94]
mov edi, dword [edx + 0x58]
mov dword [esp + 0x90], 0
shl ebp, 4
mov ecx, dword [esp + 0xb0]
mov edx, ebp
mov dword [edi + ebp + 8], ebx
mov dword [edi + ebp + 0xc], esi
mov edi, dword [esp + 0x94]
add edx, dword [ecx + 0x58]
mov eax, dword [edx + 4]
mov dword [esp + 0x18], eax
mov eax, dword [edx + 8]
mov dword [esp + 0x14], eax
mov eax, dword [edx]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0xb17328
mov dword [esp + 4], 8
mov dword [esp + 0x10], eax
mov dword [esp], 7
call fcn.00405fb0
mov eax, dword [esp + 0xb0]
xor edx, edx
mov ecx, dword [esp + 0x7c]
mov edi, dword [eax + 0x58]
mov eax, dword [edi + ebp + 4]
add ebx, eax
adc esi, edx
mov edx, dword [esp + 0xb0]
add ebp, 0x10
add dword [esp + 0x90], 1
add dword [esp + 0x94], 1
mov eax, dword [edx + 0x60]
mov edx, dword [esp + 0x90]
cmp dword [eax + ecx + 4], edx
ja 0x503a14
mov ecx, dword [esp + 0xb0]
add dword [esp + 0x88], 1
mov ebx, dword [esp + 0x88]
add dword [esp + 0x7c], 0x18
cmp dword [ecx + 0x5c], ebx
jg 0x5039dd
mov esi, dword [esp + 0xb0]
mov edx, dword [esi + 0x7c]
test edx, edx
jle 0x503917
fild dword [esp + 0xb4]
fdivr dword [0xb18b10]
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x8c], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov edx, eax
sar edx, 0x1f
mov dword [esp + 0x78], 0
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
fstp dword [esp + 0x74]
mov edx, dword [esp + 0xb0]
mov ecx, dword [esp + 0x78]
mov esi, dword [esp + 0x5c]
add ecx, dword [edx + 0x80]
mov ebx, dword [ecx + 4]
mov dword [esp + 0x64], ecx
mov dword [ecx + 0x14], esi
test ebx, ebx
mov dword [esp + 0x54], ebx
js 0x503d3c
mov edi, dword [edx + 0x54]
test edi, edi
mov dword [esp + 0x80], edi
jle 0x503d4c
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x68], 0
mov eax, dword [eax + 0x58]
mov esi, dword [eax]
cmp dword [esp + 0x54], esi
mov dword [esp + 0x70], eax
jbe 0x503bb2
add eax, 0x10
jmp 0x503b92
mov esi, dword [eax]
add eax, 0x10
cmp dword [esp + 0x54], esi
jbe 0x503bb2
add dword [esp + 0x68], 1
mov ecx, dword [esp + 0x80]
cmp dword [esp + 0x68], ecx
jne 0x503b87
mov eax, dword [esp + 0x68]
mov ebx, dword [esp + 0x70]
shl eax, 4
mov esi, dword [ebx + eax]
mov ebp, dword [esp + 0x68]
mov edi, dword [esp + 0x64]
mov edx, dword [esp + 0xb0]
mov dword [edi + 0x10], ebp
mov eax, dword [edx + 0x18]
mov edi, eax
mov ebp, eax
mov eax, dword [esp + 0x60]
sar ebp, 0x1f
mov edx, eax
sar edx, 0x1f
mov dword [esp + 0x38], eax
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x3c], edx
mov ecx, dword [esp + 0x3c]
mul edi
imul ebx, ebp
imul ecx, edi
mov dword [esp + 0x30], eax
add ecx, ebx
add edx, ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], ecx
call fcn.00aa1f60
mov ebx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
sub eax, esi
mov dword [ebx + 0x18], eax
mov eax, dword [ebx]
cmp dword [esp + 0x80], edx
mov dword [esp + 0x58], eax
jle 0x503ca3
mov eax, dword [esp + 0x58]
mov ecx, ebp
mov ebx, dword [esp + 0x4c]
imul ecx, eax
mul edi
mov dword [esp + 0xc], ebx
lea edx, [ecx + edx]
mov ecx, dword [esp + 0x48]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.00aa1f60
mov ebx, dword [esp + 0x54]
add ebx, eax
cmp ebx, esi
jb 0x503ca3
mov edx, dword [esp + 0x68]
mov esi, dword [esp + 0x70]
add edx, 1
mov eax, edx
shl eax, 4
lea ecx, [eax + esi]
jmp 0x503c94
mov eax, dword [ecx]
add ecx, 0x10
cmp ebx, eax
jb 0x503ca3
mov edi, dword [esp + 0x68]
lea edx, [edi + 1]
mov ebp, dword [esp + 0x80]
mov dword [esp + 0x68], edx
cmp edx, ebp
jne 0x503c84
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x58]
add dword [esp + 0x60], eax
mov ecx, dword [esp + 0x68]
mov eax, dword [edx + 0x18]
mov ebx, edx
sub ecx, dword [edx + 0x10]
add dword [esp + 0x5c], ecx
mov dword [edx + 0xc], ecx
mov dword [esp + 0x24], eax
mov eax, dword [edx]
xor edx, edx
push edx
push eax
fild qword [esp]
add esp, 8
fmul dword [esp + 0x74]
mov dword [esp + 0x18], ecx
mov esi, dword [esp + 0x8c]
fstp qword [esp + 0x1c]
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0xb17354
mov dword [esp + 4], 6
mov dword [esp + 0x10], eax
mov dword [esp], 7
call fcn.00405fb0
mov edi, dword [esp + 0xb0]
add dword [esp + 0x8c], 1
mov ebp, dword [esp + 0x8c]
add dword [esp + 0x78], 0x1c
cmp dword [edi + 0x7c], ebp
jg 0x503b27
jmp 0x503917
mov dword [ecx + 0xc], 0
jmp 0x503d13
mov esi, ebx
jmp 0x50387a
mov ebp, dword [edx + 0x58]
mov dword [esp + 0x68], 0
mov esi, dword [ebp]
mov dword [esp + 0x70], ebp
jmp 0x503bb2
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0xb172e8
mov dword [esp + 4], 2
mov dword [esp], 7
call fcn.00405fb0
mov ebp, dword [esp + 0xb0]
cmp esi, 0xfffffff
mov dword [ebp + 0x54], esi
mov eax, dword [ebp + 0x58]
jbe 0x503ded
mov dword [esp], eax
call sub.msvcrt.dll_free
xor eax, eax
mov edx, dword [esp + 0xb0]
mov dword [edx + 0x58], eax
jmp 0x50392a
mov ecx, dword [edx + 0x70]
cmp dword [ecx + 8], 1
mov dword [esp + 0x50], ecx
jne 0x5038fb
mov esi, dword [esp + 0x50]
jmp 0x503dd5
mov ebx, dword [edx + 0x70]
mov dword [esp + 0x50], ebx
mov esi, ebx
mov eax, dword [esi + 4]
mov edi, dword [esp + 0xb0]
mov dword [edi + 0x24], eax
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
shl esi, 4
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_realloc
jmp 0x503da6