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

Disassembly:
sub esp, 0x44
mov ecx, dword [esp + 0x4c]
push ebx
push ebp
mov ebp, dword [esp + 0x50]
mov eax, dword [ebp + 0x14]
mov ebx, dword [eax + 0xc]
sub ebx, dword [eax + 4]
push esi
mov esi, dword [ebp + 8]
sub esi, dword [ebp]
lea edx, [eax + 0xc]
push edi
mov edi, dword [eax + 8]
sub edi, dword [eax]
dec ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], esi
mov eax, 1
mov dword [esp + 0x20], ecx
mov dword [esp + 0x5c], ecx
je 0x470330
mov edi, edi
mov ecx, dword [edx + 0x78]
sub ecx, dword [edx + 0x70]
add edx, 0x7c
cmp eax, ecx
jge 0x47031f
mov eax, ecx
mov ecx, dword [edx]
sub ecx, dword [edx - 8]
cmp eax, ecx
jge 0x47032a
mov eax, ecx
dec dword [esp + 0x5c]
jne 0x470310
add eax, 5
shl eax, 4
push 0x10
push eax
call fcn.0049dfef
mov ecx, dword [esp + 0x28]
add esp, 8
mov dword [esp + 0x34], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x5c], ecx
test ecx, ecx
je 0x4706b1
jmp 0x47036c
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x58]
mov eax, dword [esp + 0x58]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 8]
sub ecx, dword [eax]
sub edx, dword [eax + 4]
mov ebp, dword [ebp + 0x18]
imul edx, ecx
mov ecx, edi
mov edi, dword [esp + 0x24]
mov eax, dword [edi + 0x7c]
add edi, 0x7c
mov dword [esp + 0x4c], ebx
mov ebx, dword [edi + 8]
sub ebx, eax
mov dword [esp + 0x18], ebx
mov ebx, dword [edi + 0xc]
sub ebx, dword [edi + 4]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x18]
sub ebx, ecx
and eax, 0x80000001
mov dword [esp + 0x20], edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x38], ebx
jns 0x4703ca
dec eax
or eax, 0xfffffffe
inc eax
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x40], eax
mov dword [esp + 0x10], ebx
test ebx, ebx
jle 0x4705bb
mov eax, esi
shl eax, 4
mov dword [esp + 0x30], eax
jmp 0x4703f4
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x34]
push ebp
push eax
mov ecx, esi
call fcn.0046fa40
add esp, 8
lea eax, [esp + 0x34]
call fcn.00470190
cmp ebx, 4
jl 0x47054e
mov ecx, dword [esp + 0x18]
dec ecx
js 0x470591
lea eax, [ecx + 1]
mov dword [esp + 0x2c], eax
cmp eax, 4
jl 0x4704ed
lea edx, [ecx + esi*2]
add edx, esi
lea edi, [ebp + edx*4]
mov edx, dword [esp + 0x28]
lea eax, [ecx + esi*2]
lea esi, [ebp + eax*4]
lea eax, [ecx + edx]
lea edx, [ebp + eax*4]
lea ebx, [ebp + ecx*4 - 8]
mov ebp, dword [esp + 0x34]
mov eax, ecx
add eax, eax
lea eax, [ebp + eax*8 + 8]
mov ebp, dword [esp + 0x2c]
shr ebp, 2
mov dword [esp + 0x2c], ebp
neg ebp
lea ecx, [ecx + ebp*4]
mov ebp, dword [esp + 0x2c]
fld dword [eax - 8]
sub edx, 0x10
fstp dword [ebx + 8]
sub esi, 0x10
fld dword [eax - 4]
sub edi, 0x10
fstp dword [edx + 0x10]
sub ebx, 0x10
fld dword [eax]
sub eax, 0x40
dec ebp
fstp dword [esi + 0x10]
fld dword [eax + 0x44]
fstp dword [edi + 0x10]
fld dword [eax + 0x28]
fstp dword [ebx + 0x14]
fld dword [eax + 0x2c]
fstp dword [edx + 0xc]
fld dword [eax + 0x30]
fstp dword [esi + 0xc]
fld dword [eax + 0x34]
fstp dword [edi + 0xc]
fld dword [eax + 0x18]
fstp dword [ebx + 0x10]
fld dword [eax + 0x1c]
fstp dword [edx + 8]
fld dword [eax + 0x20]
fstp dword [esi + 8]
fld dword [eax + 0x24]
fstp dword [edi + 8]
fld dword [eax + 8]
fstp dword [ebx + 0xc]
fld dword [eax + 0xc]
fstp dword [edx + 4]
fld dword [eax + 0x10]
fstp dword [esi + 4]
fld dword [eax + 0x14]
fstp dword [edi + 4]
jne 0x470470
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
test ecx, ecx
js 0x470591
lea edx, [ecx + esi*2]
add edx, esi
lea ebx, [ebp + edx*4]
lea eax, [ecx + esi*2]
lea edi, [ebp + eax*4]
mov eax, dword [esp + 0x34]
mov edx, ecx
add edx, edx
lea eax, [eax + edx*8 + 8]
lea edx, [ecx + esi]
lea edx, [ebp + edx*4]
jmp 0x470520
fld dword [eax - 8]
sub edx, 4
fstp dword [ebp + ecx*4]
sub edi, 4
fld dword [eax - 4]
sub ebx, 4
fstp dword [edx + 4]
sub eax, 0x10
dec ecx
fld dword [eax + 0x10]
fstp dword [edi + 4]
fld dword [eax + 0x14]
fstp dword [ebx + 4]
jns 0x470520
mov ebx, dword [esp + 0x10]
jmp 0x470591
mov eax, dword [esp + 0x18]
dec eax
js 0x470591
lea ecx, [eax + esi]
lea edi, [ebp + ecx*4]
mov ecx, dword [esp + 0x34]
mov edx, eax
add edx, edx
lea ecx, [ecx + edx*8 + 4]
mov edx, ebx
dec edx
je 0x470581
dec edx
je 0x47057d
dec edx
jne 0x470588
fld dword [ecx + 4]
lea edx, [eax + esi*2]
fstp dword [ebp + edx*4]
fld dword [ecx]
fstp dword [edi]
fld dword [ecx - 4]
fstp dword [ebp + eax*4]
sub ecx, 0x10
sub edi, 4
dec eax
jns 0x470568
add ebp, dword [esp + 0x30]
lea eax, [esi*4]
sub dword [esp + 0x20], eax
sub ebx, 4
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x10], ebx
test ebx, ebx
jg 0x4703f0
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
mov ecx, dword [edi + 4]
mov eax, ebx
sub eax, dword [esp + 0x4c]
and ecx, 0x80000001
mov dword [esp + 0x48], eax
jns 0x4705d5
dec ecx
or ecx, 0xfffffffe
inc ecx
mov edx, dword [esp + 0x58]
mov edi, dword [esp + 0x18]
mov ebp, dword [edx + 0x18]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x10], edi
test edi, edi
jle 0x4706a3
jmp 0x4705fa
mov ebx, dword [esp + 0x14]
push ebp
mov eax, esi
lea edx, [esp + 0x48]
call fcn.0046fce0
add esp, 4
mov eax, edx
call fcn.00470190
cmp edi, 4
jl 0x470650
test ebx, ebx
jle 0x470689
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
lea edi, [esi*4]
mov ecx, ebp
lea ebx, [ebx]
mov ebx, dword [eax]
mov dword [ecx], ebx
mov ebx, dword [eax + 4]
mov dword [ecx + 4], ebx
mov ebx, dword [eax + 8]
mov dword [ecx + 8], ebx
mov ebx, dword [eax + 0xc]
mov dword [ecx + 0xc], ebx
add eax, 0x10
add ecx, edi
dec edx
jne 0x470630
jmp 0x470689
test ebx, ebx
jle 0x470689
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x14]
lea esp, [esp]
mov eax, dword [esp + 0x10]
lea ecx, [eax*4]
push ecx
push edi
push ebp
call sub.MSVCRT.dll_memcpy
lea eax, [esi*4]
add esp, 0xc
add edi, 0x10
add ebp, eax
dec ebx
jne 0x470660
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
sub edi, 4
add ebp, 0x10
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x10], edi
test edi, edi
jg 0x4705f6
dec dword [esp + 0x5c]
jne 0x470360
mov eax, dword [esp + 0x34]
push eax
call fcn.0049e039
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret