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

Disassembly:
mov ecx, dword [0x7c3e14]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4785a6
sub esp, 0x6c
mov edx, dword [esp + 0x74]
test edx, edx
sete bl
mov ebp, dword [esp + 0x70]
test ebp, ebp
xchg edi, ebx
sete bl
xchg edi, ebx
and edi, ebx
xchg edi, eax
test al, al
xchg edi, eax
je 0x4780de
movzx eax, byte [esp + 0x7c]
test al, al
je 0x4780c6
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0x80000000
movsd xmm0, qword [esp + 0x64]
jmp 0x4780c9
xorps xmm0, xmm0
movsd qword [esp + 0x80], xmm0
mov byte [esp + 0x88], 1
add esp, 0x6c
ret
mov ebx, dword [esp + 0x78]
lea edi, [ebx + 0x15c]
cmp edi, 0x2b7
ja 0x478573
nop
cmp edx, 1
sete al
seta cl
and eax, 1
or ecx, eax
test cl, cl
je 0x478110
xor ecx, ecx
mov esi, 0x20
jmp 0x478116
mov ecx, edx
mov edx, ebp
xor esi, esi
mov dword [esp + 0x58], edi
test ecx, ecx
seta al
xchg ebp, ebx
sete bl
xchg ebp, ebx
cmp edx, 0x10000
xchg edi, ebx
setae bl
xchg edi, ebx
and edi, ebp
or eax, edi
test al, al
je 0x47814b
shr edx, 0x10
mov ebp, ecx
shl ebp, 0x10
or edx, ebp
shr ecx, 0x10
add esi, 0x10
test ecx, ecx
xchg ebp, ebx
seta bl
xchg ebp, ebx
xchg edi, ebx
sete bl
xchg edi, ebx
cmp edx, 0x100
setae al
and eax, edi
or eax, ebp
test al, al
je 0x47817c
shr edx, 8
mov ebp, ecx
shl ebp, 0x18
or edx, ebp
shr ecx, 8
add esi, 8
test ecx, ecx
jne 0x478597
cmp edx, 0x100
jae 0x47858b
imul eax, ebx, 0x3526a
sar eax, 0x10
add eax, 0x43f
mov dword [esp + 0x54], eax
sar eax, 0x1f
mov dword [esp + 0x50], eax
mov ebp, dword [esp + 0x58]
shl ebp, 4
mov dword [esp + 0x58], ebp
lea edi, [0x77f740]
mov ecx, dword [edi + ebp + 8]
mov dword [esp + 0x4c], ecx
mov ebp, dword [edi + ebp + 0xc]
mov dword [esp + 0x48], ebp
lea edi, [0x61c573]
movzx edx, byte [edi + edx]
lea edx, [edx + esi - 0x40]
neg edx
mov dword [esp + 0x20], edx
mov ecx, edx
mov edi, dword [esp + 0x70]
shl edi, cl
mov eax, dword [esp + 0x74]
shl eax, cl
lea ebx, [ecx - 0x20]
mov ecx, ebx
mov esi, dword [esp + 0x70]
shl esi, cl
neg ecx
mov ebp, dword [esp + 0x70]
shr ebp, cl
sar edx, 0x1f
mov dword [esp + 0x44], edx
cmp ecx, 0x20
sbb ecx, ecx
and ebp, ecx
cmp ebx, 0x20
sbb ebx, ebx
and esi, ebx
mov ebx, dword [esp + 0x20]
cmp ebx, 0x20
sbb ecx, ecx
and edi, ecx
mov dword [esp + 0x40], edi
and eax, ecx
or ebp, eax
or ebp, esi
mov dword [esp + 0x3c], ebp
mov dword [esp + 4], ebp
mov dword [esp], edi
mov eax, dword [esp + 0x48]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], eax
call fcn.004723f0
mov eax, dword [esp + 0x10]
mov edx, eax
and eax, 0x1ff
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x54]
mov ecx, edx
mov edx, dword [esp + 0x20]
sub edi, edx
mov dword [esp + 0x34], edi
mov edx, dword [esp + 0x50]
mov edi, dword [esp + 0x44]
sbb edx, edi
mov dword [esp + 0x50], edx
cmp eax, 0x1ff
sete al
and eax, 1
test al, al
je 0x4783ca
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x40]
mov edi, eax
add eax, ebp
mov edx, dword [esp + 0x3c]
adc edx, esi
mov ebx, dword [esp + 0x3c]
cmp ebx, edx
seta dl
sete bl
cmp eax, edi
setb al
and eax, ebx
or eax, edx
test al, al
jne 0x4782c9
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x30]
jmp 0x4783ca
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], esi
mov dword [esp + 0x4c], ecx
mov eax, dword [esp + 0x58]
lea ecx, [0x77f740]
mov edx, dword [ecx + eax]
mov eax, dword [ecx + eax + 4]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], ecx
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
call fcn.004723f0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
add eax, edx
mov ebx, dword [esp + 0x28]
adc ecx, ebx
cmp ebx, ecx
seta bl
xchg ebp, ebx
sete bl
xchg ebp, ebx
cmp eax, edx
setb dl
and edx, ebp
or ebx, edx
test bl, bl
je 0x47833b
mov edx, dword [esp + 0x4c]
add edx, 1
mov ebx, dword [esp + 0x30]
adc ebx, 0
jmp 0x478343
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x30]
mov ebp, edx
and edx, 0x1ff
cmp edx, 0x1ff
sete dl
and edx, 1
test dl, dl
je 0x4783c0
cmp eax, 0xffffffff
sete dl
cmp ecx, 0xffffffff
xchg esi, ebx
sete bl
xchg esi, ebx
and edx, esi
test dl, dl
je 0x4783c0
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x40]
add edx, edi
mov eax, dword [esp + 0x3c]
adc esi, eax
cmp eax, esi
seta al
xchg esi, ebx
sete bl
xchg esi, ebx
cmp edx, edi
setb dl
and edx, esi
or edx, eax
test dl, dl
jne 0x4783a8
mov eax, dword [esp + 0x38]
jmp 0x4783c0
xorps xmm0, xmm0
movsd qword [esp + 0x80], xmm0
mov byte [esp + 0x88], 0
add esp, 0x6c
ret
mov edx, dword [esp + 0x50]
mov esi, ecx
mov ecx, ebp
mov ebp, eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], esi
mov eax, ebx
shr ebx, 0x1f
mov edi, ebx
xor ebx, 1
mov dword [esp + 0x4c], ebx
add edi, 9
mov edx, 0
adc edx, 0
cmp edx, 1
sbb edx, edx
xor edx, 0xffffffff
or edx, edi
mov edi, ecx
mov ecx, edx
shr edi, cl
shr eax, cl
lea ebp, [ecx - 0x20]
mov ecx, ebp
mov esi, dword [esp + 0x30]
shr esi, cl
neg ecx
mov ebx, dword [esp + 0x30]
shl ebx, cl
cmp edx, 0x20
sbb edx, edx
and edi, edx
and eax, edx
cmp ebp, 0x20
sbb edx, edx
and esi, edx
cmp ecx, 0x20
sbb edx, edx
and ebx, edx
or ebx, edi
or ebx, esi
mov edx, dword [esp + 0x34]
mov ebp, dword [esp + 0x4c]
mov esi, edx
sub edx, ebp
mov edi, dword [esp + 0x28]
test edi, edi
xchg edi, ebx
sete bl
xchg edi, ebx
mov ecx, edx
mov edx, dword [esp + 0x24]
test edx, edx
sete dl
and edi, edx
xchg edi, eax
test al, al
xchg edi, eax
je 0x4784a7
mov edx, dword [esp + 0x2c]
test edx, 0x1ff
sete dl
and edx, 1
test dl, dl
je 0x4784a1
mov edx, ebx
and ebx, 3
cmp ebx, 1
sete bl
and ebx, 1
test bl, bl
jne 0x478489
sub esi, ebp
jmp 0x4784ab
xorps xmm0, xmm0
movsd qword [esp + 0x80], xmm0
mov byte [esp + 0x88], 0
add esp, 0x6c
ret
sub esi, ebp
mov edx, ebx
jmp 0x4784ab
sub esi, ebp
mov edx, ebx
mov ebx, dword [esp + 0x50]
sbb ebx, 0
mov ebp, edx
and edx, 1
add edx, ebp
adc eax, 0
mov ebp, edx
shr edx, 1
mov esi, eax
shl eax, 0x1f
mov edi, esi
shr esi, 0x16
or eax, edx
mov edx, edi
shr edi, 1
test esi, esi
xchg esi, ebx
seta bl
xchg esi, ebx
and esi, 1
xchg esi, eax
test al, al
xchg esi, eax
je 0x4784f7
shr ebp, 2
mov eax, edx
shl eax, 0x1e
or eax, ebp
shr edx, 2
add ecx, 1
adc ebx, 0
jmp 0x4784f9
mov edx, edi
mov ebp, ecx
add ecx, 0xffffffff
adc ebx, 0xffffffff
test ebx, ebx
seta bl
xchg esi, ebx
sete bl
xchg esi, ebx
cmp ecx, 0x7fe
setae cl
and ecx, esi
or ecx, ebx
test cl, cl
jne 0x47855b
shl ebp, 0x14
and edx, 0xfffff
or ebp, edx
movzx ecx, byte [esp + 0x7c]
test cl, cl
je 0x478538
or ebp, 0x80000000
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ebp
movsd xmm0, qword [esp + 0x5c]
movsd qword [esp + 0x80], xmm0
mov byte [esp + 0x88], 1
add esp, 0x6c
ret
xorps xmm0, xmm0
movsd qword [esp + 0x80], xmm0
mov byte [esp + 0x88], 0
add esp, 0x6c
ret
xorps xmm0, xmm0
movsd qword [esp + 0x80], xmm0
mov byte [esp + 0x88], 0
add esp, 0x6c
ret
mov eax, edx
mov ecx, 0x100
call fcn.00468470
mov esi, ecx
mov eax, edx
mov ecx, 0x100
call fcn.00468550
nop
call fcn.00467000
jmp fcn.00478070