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

Disassembly:
sub esp, 0x68
mov eax, dword [0x508578]
xor eax, esp
mov dword [esp + 0x64], eax
cmp byte [esp + 0x80], 0
push ebx
mov ebx, dword [esp + 0x70]
mov eax, dword [ebx]
push ebp
mov ebp, dword [esp + 0x78]
push esi
mov esi, dword [esp + 0x80]
push edi
mov edi, dword [esp + 0x88]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x18], eax
jne 0x470e89
mov eax, dword [ebx + 4]
cmp byte [eax + 0xc], 0
jne 0x470e89
mov ecx, dword [edi]
mov edx, dword [esp + 0x8c]
pxor xmm0, xmm0
push 1
push edx
movq qword [esp + 0x60], xmm0
mov dword [esp + 0x60], ecx
lea ecx, [esp + 0x60]
push ecx
push esi
push ebp
push eax
movq qword [esp + 0x78], xmm0
movq qword [esp + 0x80], xmm0
mov dword [esp + 0x88], 0
call fcn.00470e00
add esp, 0x18
cmp byte [edi + 4], 0
jne 0x470ea6
mov esi, dword [esi + 0x14]
add esi, dword [ebp + 0x14]
mov eax, edi
call fcn.0046f2d0
cmp byte [edi + 4], 0
je 0x471299
xor ecx, ecx
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x18], ecx
movq xmm0, qword [edi]
mov edx, dword [edi + 0x18]
lea eax, [esp + 0x68]
movq qword [esp + 0x58], xmm0
movq xmm0, qword [edi + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
movq qword [esp + 0x60], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esp + 0x68], xmm0
mov dword [esp + 0x70], edx
mov dword [esp + 0x1c], eax
cmp eax, dword [edi + 8]
ja 0x471299
mov eax, dword [esp + 0x18]
cmp byte [eax + 0xf9], cl
je 0x470f39
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x30]
push ecx
add eax, 0x120
pxor xmm0, xmm0
push eax
mov esi, ebx
movq qword [esp + 0x38], xmm0
movq qword [esp + 0x40], xmm0
call fcn.0046e500
mov edx, dword [esp + 0x20]
add edx, 0x10c
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.0046e500
add esp, 0x10
xor ecx, ecx
mov eax, dword [esp + 0x1c]
xor edi, edi
mov byte [esp + 0x13], 0x80
test eax, eax
je 0x47101b
lea esp, [esp]
mov ecx, dword [esp + 0x14]
mov dl, byte [esp + 0x13]
test byte [ecx], dl
je 0x470ff5
mov eax, dword [ebx + 0x10]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x18]
push 1
push eax
push ecx
push edx
push edi
mov ecx, ebp
lea esi, [esp + 0x58]
call fcn.004709c0
mov eax, dword [ebx + 0x10]
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0x2c]
push 0
push eax
push ecx
push edx
push edi
mov ecx, ebp
lea esi, [esp + 0x58]
call fcn.004709c0
mov eax, dword [esp + 0x6c]
shr eax, 4
add esp, 0x28
test al, 1
jne 0x470fd5
mov ecx, dword [esp + 0x30]
shr ecx, 4
test cl, 1
jne 0x470fd5
mov edx, esi
push edx
lea eax, [esp + 0x48]
push eax
mov eax, dword [esp + 0x20]
add eax, 0xf0
call fcn.00470410
add esp, 8
test al, al
je 0x470ff5
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x48]
push edx
mov esi, ebx
call fcn.0046e500
mov cl, byte [esp + 0x1b]
mov eax, dword [esp + 0x1c]
not cl
add esp, 8
and byte [eax], cl
mov edx, edi
and edx, 7
cmp dl, 7
jne 0x47100a
inc dword [esp + 0x14]
mov byte [esp + 0x13], 0x80
jmp 0x47100e
shr byte [esp + 0x13], 1
mov eax, dword [esp + 0x1c]
inc edi
cmp edi, eax
jb 0x470f50
cmp byte [esp + 0x90], 0
je 0x471090
mov eax, dword [ebx + 0x14]
xor ecx, ecx
cmp eax, ecx
je 0x471040
cmp dword [ebx + 0x24], ecx
jg 0x471040
lea eax, [eax + eax*4]
cmp dword [ebx + eax*4 + 0x10], ecx
jge 0x471225
mov edx, dword [ebx + 0x10]
pxor xmm0, xmm0
mov dword [esp + 0x40], ecx
lea eax, [esp + 0x44]
mov dword [esp + 0x54], ecx
movq qword [esp + 0x30], xmm0
push eax
lea ecx, [esp + 0x34]
movq qword [esp + 0x3c], xmm0
pxor xmm0, xmm0
push ecx
mov esi, ebx
mov dword [esp + 0x38], 0x31
mov dword [esp + 0x48], edx
movq qword [esp + 0x4c], xmm0
movq qword [esp + 0x54], xmm0
call fcn.0046e500
add esp, 8
jmp 0x471225
lea edx, [esp + 0x68]
xor edi, edi
mov dword [esp + 0x14], edx
mov byte [esp + 0x13], 0x80
test eax, eax
je 0x471225
jmp 0x4710b0
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x14]
test byte [ecx], al
je 0x471202
mov edx, dword [ebx + 0x10]
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x18]
push 1
push edx
push eax
push ecx
push edi
mov ecx, ebp
lea esi, [esp + 0x58]
call fcn.004709c0
mov edx, dword [ebx + 0x10]
add esp, 0x14
pxor xmm0, xmm0
mov dword [esp + 0x28], edx
movq qword [esp + 0x30], xmm0
movq qword [esp + 0x38], xmm0
mov dword [esp + 0x40], 0
mov ecx, edi
cmp edi, dword [ebp + 0x14]
jb 0x47111c
mov eax, dword [ebp + 4]
test eax, eax
je 0x47111a
cmp dword [eax], 0
jne 0x47111a
mov dword [eax], 0x82
xor ecx, ecx
mov eax, dword [ebp + 8]
imul eax, ecx
add eax, dword [ebp + 0x1c]
mov esi, dword [eax + 8]
mov edx, dword [eax + 4]
mov ecx, esi
sub ecx, edx
cmp ecx, 0xffeb0000
jne 0x47113f
mov edx, dword [esp + 0x38]
xor ecx, ecx
jmp 0x471159
cmp ecx, 0xffec0000
jne 0x47114e
mov ecx, 2
jmp 0x471159
test ecx, ecx
mov ecx, 8
js 0x471159
mov edx, esi
mov esi, ecx
and esi, 0xa
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], esi
je 0x471175
mov esi, dword [esp + 0x18]
mov esi, dword [esi + 0xe8]
lea edx, [edx + esi*2]
add edx, dword [esp + 0x8c]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x38], edx
mov dword [esp + 0x40], esi
mov dword [esp + 0x34], edi
test ecx, ecx
je 0x4711bc
cmp byte [eax], 0
je 0x4711bc
cmp dword [esp + 0x20], 0
je 0x4711ac
mov eax, dword [eax + 0x10]
or ecx, 0x10
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], ecx
jmp 0x4711ee
mov edx, dword [eax + 0xc]
or ecx, 0x10
mov dword [esp + 0x3c], edx
mov dword [esp + 0x30], ecx
jmp 0x4711ee
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x3c], eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x48]
push edx
mov esi, ebx
call fcn.0046e500
add esp, 8
mov eax, edi
and eax, 7
cmp al, 7
jne 0x471216
inc dword [esp + 0x14]
mov byte [esp + 0x13], 0x80
jmp 0x47121a
shr byte [esp + 0x13], 1
inc edi
cmp edi, dword [esp + 0x1c]
jb 0x4710b0
push ebx
call fcn.00470b00
add esp, 4
cmp byte [esp + 0x90], 0
jne 0x47128d
xor esi, esi
cmp dword [ebx + 0x14], esi
jbe 0x47128d
lea ecx, [ebx + 0x1c]
mov edx, dword [ecx]
shr edx, 5
test dl, 1
jne 0x471284
mov edx, dword [ecx + 4]
cmp edx, dword [ebp + 0x14]
jb 0x471268
mov eax, dword [ebp + 4]
test eax, eax
je 0x471266
cmp dword [eax], 0
jne 0x471266
mov dword [eax], 0x82
xor edx, edx
mov eax, dword [ebp + 8]
imul eax, edx
add eax, dword [ebp + 0x1c]
test byte [ecx], 0xa
mov edx, dword [ecx + 0xc]
je 0x47127e
mov dword [eax + 0x10], edx
jmp 0x471281
mov dword [eax + 0xc], edx
mov byte [eax], 1
inc esi
add ecx, 0x14
cmp esi, dword [ebx + 0x14]
jb 0x471242
mov eax, dword [esp + 0x2c]
mov byte [ebx + 0xc], 1
mov byte [eax + 5], 0
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00493576
add esp, 0x68
ret