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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x204
mov eax, dword [esp + 0x228]
mov ecx, dword [section..data]
xor ecx, esp
mov dword [esp + 0x200], ecx
mov esi, 0xffffffd4
cmp eax, 0x5dc
jb 0x404f96
mov ecx, dword [esp + 0x224]
mov ebx, dword [esp + 0x218]
mov eax, dword [ebx]
movzx edx, al
lea ebp, [ecx + 0x270]
xorps xmm0, xmm0
movups xmmword [ebp + 0x5c], xmm0
movups xmmword [ebp + 0x50], xmm0
movups xmmword [ebp + 0x40], xmm0
movups xmmword [ebp + 0x30], xmm0
movups xmmword [ebp + 0x20], xmm0
movups xmmword [ebp + 0x10], xmm0
movups xmmword [ebp], xmm0
cmp edx, 0xc
ja 0x404f96
mov dword [esp + 0x2c], edx
mov dword [esp + 0x44], eax
lea eax, [ecx + 0x4dc]
sub esp, 4
lea ecx, [esp + 0x6c]
lea edx, [esp + 0x68]
lea edi, [esp + 0x64]
push 0x164
push ecx
push dword [esp + 0x22c]
push dword [esp + 0x22c]
push edx
push edi
push ebp
push 0x100
push eax
call fcn.004029d0
add esp, 0x28
cmp eax, 0xffffff88
ja 0x40482e
mov edx, ebp
mov edi, dword [esp + 0x64]
mov ebp, dword [esp + 0x2c]
mov ecx, ebp
sub ecx, edi
jb 0x404f96
mov dword [esp + 0x24], ecx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
shr eax, 0x18
mov dword [esp + 0x54], eax
lea eax, [ebx + 4]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x224]
lea eax, [ecx + 0x2dc]
mov dword [esp + 0x50], eax
mov dword [esp + 4], edi
lea esi, [edi + 1]
lea eax, [ecx + 0x34]
mov dword [esp + 0xc], eax
lea eax, [ecx + 0x3c]
mov dword [esp], eax
xor ebx, ebx
mov dword [esp + 8], 0x34
mov dword [esp + 0x30], esi
mov dword [esp + 0x1c], edx
nop word cs:[eax + eax]
mov eax, dword [esp + 4]
mov edi, esi
mov ecx, ebx
mov ebx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x1c]
cmp dword [edx + eax*4], 0
mov edx, dword [esp]
lea esi, [eax - 1]
mov dword [esp + 4], esi
mov dword [esp + 0x14], edi
lea esi, [edi - 1]
mov dword [esp + 0x40], ebp
lea ebp, [ebp - 1]
mov edi, ecx
lea edi, [ecx + 1]
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x18], ebx
lea ebx, [ebx + 0x34]
mov dword [esp + 8], ebx
lea ebx, [edi + 0x34]
mov dword [esp + 0xc], ebx
lea ebx, [edx + 0x34]
mov dword [esp], ebx
mov ebx, dword [esp + 0x20]
je 0x4047a0
mov dword [esp + 0x20], ecx
mov dword [esp + 8], edx
mov dword [esp], eax
dec eax
xor esi, esi
mov dword [esp + 0xc], eax
cmp eax, 0xfffffffd
mov ebx, dword [esp + 0x14]
ja 0x4048d0
cmp dword [esp + 0xc], 3
jae 0x404835
xor ecx, ecx
mov eax, 1
jmp 0x40489c
mov esi, eax
jmp 0x404f96
mov ebx, dword [esp]
and ebx, 0xfffffffc
xor ecx, ecx
xor eax, eax
mov esi, dword [esp + 0x224]
nop word cs:[eax + eax]
mov edx, dword [esi + eax*4 + 0x274]
add edx, ecx
mov dword [esi + eax*4 + 0x2ac], ecx
mov ecx, dword [esi + eax*4 + 0x278]
add ecx, edx
mov dword [esi + eax*4 + 0x2b0], edx
mov edx, dword [esi + eax*4 + 0x27c]
add edx, ecx
mov dword [esi + eax*4 + 0x2b4], ecx
mov ecx, dword [esi + eax*4 + 0x280]
add ecx, edx
mov dword [esi + eax*4 + 0x2b8], edx
add eax, 4
cmp ebx, eax
jne 0x404850
inc eax
mov ebx, dword [esp + 0x14]
mov esi, ecx
test byte [esp], 3
je 0x4048d0
mov edx, dword [esp + 0x224]
lea eax, [edx + eax*4]
add eax, 0x2a8
mov edx, dword [esp]
and edx, 3
xor edi, edi
nop dword [eax + eax]
mov esi, dword [eax + edi*4 - 0x38]
add esi, ecx
mov dword [eax + edi*4], ecx
inc edi
mov ecx, esi
cmp edx, edi
jne 0x4048c0
mov dword [esp + 0x28], esi
mov edi, dword [esp + 0x224]
mov dword [edi + 0x2a8], esi
mov ecx, dword [esp + 0x60]
test ecx, ecx
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
je 0x4049bb
xor eax, eax
cmp ecx, 1
je 0x404987
mov dword [esp + 4], ecx
mov ebx, ecx
and ebx, 0xfffffffe
xor eax, eax
nop dword [eax + eax]
movzx edx, byte [edi + eax + 0x4dc]
mov esi, dword [edi + edx*4 + 0x2a8]
lea edi, [esi + 1]
mov ecx, dword [esp + 0x224]
mov dword [ecx + edx*4 + 0x2a8], edi
mov byte [ecx + esi*2 + 0x2dc], al
mov byte [ecx + esi*2 + 0x2dd], dl
movzx edx, byte [ecx + eax + 0x4dd]
mov esi, dword [ecx + edx*4 + 0x2a8]
lea edi, [esi + 1]
mov dword [ecx + edx*4 + 0x2a8], edi
mov edi, dword [esp + 0x224]
mov ecx, eax
inc cl
mov byte [edi + esi*2 + 0x2dc], cl
mov byte [edi + esi*2 + 0x2dd], dl
add eax, 2
cmp eax, ebx
jne 0x404910
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 4]
test cl, 1
je 0x4049bb
movzx ecx, byte [edi + eax + 0x4dc]
mov edx, dword [edi + ecx*4 + 0x2a8]
lea esi, [edx + 1]
mov dword [edi + ecx*4 + 0x2a8], esi
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
mov byte [edi + edx*2 + 0x2dc], al
mov byte [edi + edx*2 + 0x2dd], cl
mov dword [edi + 0x2a8], 0
cmp dword [esp + 0xc], 0xfffffffd
ja 0x404a5f
cmp dword [esp + 0xc], 0
je 0x404a4f
lea ebx, [edi + 0x278]
mov eax, dword [esp]
and eax, 0xfffffffe
mov dword [esp + 4], eax
xor eax, eax
mov ebp, 0xffffffff
mov edx, dword [esp + 0x24]
nop word cs:[eax + eax]
mov edi, dword [ebx - 4]
mov esi, dword [ebx]
mov ecx, edx
shl edi, cl
add edi, eax
mov dword [ebx - 0x274], eax
inc cl
shl esi, cl
mov eax, esi
add eax, edi
mov dword [ebx - 0x270], edi
add ebx, 8
add edx, 2
mov ecx, dword [esp + 4]
add ecx, ebp
add ecx, 0xfffffffe
add ebp, 0xfffffffe
cmp ecx, 0xffffffff
jne 0x404a00
neg ebp
mov ecx, ebp
mov edi, dword [esp + 0x224]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
jmp 0x404a56
xor eax, eax
mov ecx, 1
test byte [esp], 1
je 0x404a5f
mov dword [edi + ecx*4], eax
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp]
mov eax, dword [esp + 0x2c]
sub eax, ecx
inc eax
mov dword [esp + 0x4c], ecx
cmp ecx, eax
mov edx, dword [esp + 8]
jae 0x404bf2
imul eax, dword [esp + 0x20], 0x34
add eax, edi
add eax, 0x38
mov dword [esp + 0x1c], eax
lea eax, [edi + 4]
mov dword [esp + 0x24], eax
mov eax, dword [esp]
and eax, 0xfffffff8
mov dword [esp + 0x20], eax
inc eax
mov dword [esp + 0x3c], eax
lea eax, [edi + 0x14]
mov dword [esp + 0x38], eax
mov dword [esp + 4], 0
mov ecx, dword [esp + 0x4c]
jmp 0x404ae0
inc ecx
inc dword [esp + 4]
mov ebp, dword [esp + 0x18]
add ebp, 0x34
mov esi, dword [esp + 0x10]
add esi, 0x34
add edx, 0x34
cmp dword [esp + 0x40], ecx
je 0x404bf2
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], esi
cmp dword [esp + 0xc], 0xfffffffd
ja 0x404ac0
mov ebp, 1
cmp dword [esp], 8
jb 0x404b60
imul eax, dword [esp + 4], 0x34
add eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x24]
cmp eax, 0x20
jb 0x404b60
movd xmm0, ecx
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x18]
nop dword [eax]
movdqu xmm1, xmmword [ebx - 0x10]
movdqu xmm2, xmmword [ebx]
xorps xmm3, xmm3
movss xmm3, xmm0
psrld xmm1, xmm3
psrld xmm2, xmm3
movdqu xmmword [ebx + esi - 0x10], xmm1
movdqu xmmword [ebx + esi], xmm2
add ebx, 0x20
add eax, 0xfffffff8
jne 0x404b20
mov ebp, dword [esp + 0x3c]
mov eax, dword [esp + 0x20]
cmp dword [esp], eax
mov ebx, dword [esp + 0x14]
je 0x404ac0
mov dword [esp + 8], edx
mov eax, ebp
sub ebx, ebp
test bl, 3
mov edx, dword [esp + 0x10]
je 0x404b9c
mov eax, dword [esp + 0x14]
mov ebx, ebp
sub al, bl
mov esi, ebp
movzx ebx, al
and ebx, 3
mov eax, ebp
nop word cs:[eax + eax]
mov esi, dword [edi + eax*4]
shr esi, cl
mov dword [edx + eax*4], esi
inc eax
dec ebx
jne 0x404b90
mov ebx, dword [esp]
sub ebx, ebp
cmp ebx, 3
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 8]
jb 0x404ac0
nop word cs:[eax + eax]
mov esi, dword [edi + eax*4]
shr esi, cl
mov dword [edx + eax*4 - 8], esi
mov esi, dword [edi + eax*4 + 4]
shr esi, cl
mov dword [edx + eax*4 - 4], esi
mov esi, dword [edi + eax*4 + 8]
shr esi, cl
mov dword [edx + eax*4], esi
mov esi, dword [edi + eax*4 + 0xc]
shr esi, cl
mov dword [edx + eax*4 + 4], esi
add eax, 4
cmp ebx, eax
jne 0x404bc0
jmp 0x404ac0
mov eax, dword [edi + 0x30]
mov dword [esp + 0x1fc], eax
movups xmm0, xmmword [edi + 0x20]
movups xmmword [esp + 0x1ec], xmm0
movdqu xmm0, xmmword [edi]
movups xmm1, xmmword [edi + 0x10]
movups xmmword [esp + 0x1dc], xmm1
movdqu xmmword [esp + 0x1cc], xmm0
mov esi, dword [esp + 0x28]
test esi, esi
mov ebp, dword [esp + 0x2c]
je 0x404f77
mov eax, dword [esp + 0x30]
sub eax, ebp
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x218]
add eax, 0x14
mov dword [esp + 0x34], eax
xor ebx, ebx
jmp 0x404c78
mov eax, dword [esp + 0x38]
add eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x1c]
mov dword [esp + ecx*4 + 0x1cc], eax
inc ebx
cmp ebx, esi
je 0x404f77
mov eax, dword [esp + 0x50]
movzx ecx, byte [eax + ebx*2]
mov dword [esp], ecx
movzx eax, byte [eax + ebx*2 + 1]
mov edx, dword [esp + 0x30]
sub edx, eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + eax*4 + 0x1cc]
mov ecx, ebp
sub ecx, edx
mov esi, ebp
mov ebp, 1
shl ebp, cl
mov dword [esp + 0xc], ecx
cmp ecx, dword [esp + 0x4c]
mov dword [esp + 4], edx
jae 0x404d40
mov edx, esi
mov ecx, eax
add eax, ebp
cmp ecx, eax
jae 0x404f30
mov edi, ebp
mov ebp, ecx
movzx ecx, byte [esp + 4]
shl ecx, 0x10
mov esi, dword [esp]
add ecx, esi
add ecx, 0x1000000
cmp dword [esp + 0xc], 3
jb 0x404f46
and edi, 0xfffffff8
movd xmm0, ecx
pshufd xmm0, xmm0, 0
mov edx, dword [esp + 0x34]
lea edx, [edx + ebp*4]
add ebp, edi
xor esi, esi
nop
movdqu xmmword [edx + esi*4 - 0x10], xmm0
movdqu xmmword [edx + esi*4], xmm0
add esi, 8
cmp edi, esi
jne 0x404d00
test edi, edi
mov edx, dword [esp + 0x2c]
je 0x404f46
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x224]
jmp 0x404f70
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebx
mov ebx, eax
mov eax, dword [esp + 0x5c]
lea ecx, [eax + edx]
cmp ecx, 2
mov eax, 1
cmovl ecx, eax
mov eax, dword [edi + ecx*4 + 0x2a4]
imul edx, edx, 0x34
mov esi, dword [edi + edx + 0x30]
mov dword [esp + 0x98], esi
movups xmm0, xmmword [edi + edx + 0x20]
movups xmmword [esp + 0x88], xmm0
movdqu xmm0, xmmword [edi + edx]
movups xmm1, xmmword [edi + edx + 0x10]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x24], ebx
lea edx, [edx + ebx*4]
mov dword [esp + 8], edx
movups xmmword [esp + 0x78], xmm1
movdqu xmmword [esp + 0x68], xmm0
cmp ecx, 2
jb 0x404e18
mov ecx, dword [esp + ecx*4 + 0x68]
test ecx, ecx
je 0x404e18
movzx edx, byte [esp + 4]
shl edx, 0x10
mov esi, dword [esp]
add edx, esi
add edx, 0x1000000
mov esi, dword [esp + 8]
xor ebx, ebx
cmp ecx, 8
jb 0x404e10
mov ebx, ecx
and ebx, 0xfffffff8
movd xmm0, edx
pshufd xmm0, xmm0, 0
mov esi, dword [esp + 0x34]
mov ebp, dword [esp + 0x24]
lea esi, [esi + ebp*4]
xor ebp, ebp
nop dword [eax + eax]
movdqu xmmword [esi + ebp*4 - 0x10], xmm0
movdqu xmmword [esi + ebp*4], xmm0
add ebp, 8
cmp ebx, ebp
jne 0x404df0
cmp ecx, ebx
mov esi, dword [esp + 8]
je 0x404e18
nop word [eax + eax]
mov dword [esi + ebx*4], edx
inc ebx
cmp ecx, ebx
jne 0x404e10
cmp dword [esp + 0x28], eax
mov edx, dword [esp + 4]
je 0x404c50
mov ecx, dword [esp + 0x28]
sub ecx, eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x50]
lea eax, [ecx + eax*2]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
lea eax, [eax + ecx*4]
mov dword [esp + 0x14], eax
xor ecx, ecx
jmp 0x404e6b
mov eax, dword [esp + 0x18]
mov dword [esp + eax*4 + 0x68], ebp
mov ecx, dword [esp + 0x10]
inc ecx
cmp ecx, dword [esp + 0x20]
mov edx, dword [esp + 4]
je 0x404c50
mov eax, dword [esp + 0x40]
movzx esi, byte [eax + ecx*2]
mov dword [esp + 0x10], ecx
movzx ebx, byte [eax + ecx*2 + 1]
mov eax, dword [esp + 0x30]
sub eax, ebx
mov ecx, dword [esp + 0xc]
sub ecx, eax
mov ebp, 1
shl ebp, cl
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + ebx*4 + 0x68]
add ebp, ecx
shl esi, 8
add eax, edx
movzx edx, al
shl edx, 0x10
or edx, esi
lea eax, [ecx + 1]
cmp ebp, eax
cmova eax, ebp
mov esi, dword [esp]
lea ebx, [esi + edx]
add ebx, 0x2000000
sub eax, ecx
cmp eax, 8
jae 0x404ed0
mov eax, dword [esp + 8]
jmp 0x404f20
mov esi, eax
and esi, 0xfffffff8
movd xmm0, ebx
pshufd xmm0, xmm0, 0
mov edx, dword [esp + 0x14]
lea edx, [edx + ecx*4]
add ecx, esi
xor edi, edi
nop dword [eax]
movdqu xmmword [edx + edi*4 - 0x10], xmm0
movdqu xmmword [edx + edi*4], xmm0
add edi, 8
cmp esi, edi
jne 0x404ef0
cmp eax, esi
mov edi, dword [esp + 0x224]
mov eax, dword [esp + 8]
je 0x404e50
nop word cs:[eax + eax]
mov dword [eax + ecx*4], ebx
inc ecx
cmp ecx, ebp
jb 0x404f20
jmp 0x404e50
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x224]
mov ebp, edx
mov esi, dword [esp + 0x28]
jmp 0x404c68
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x224]
nop word cs:[eax + eax]
mov dword [esi + ebp*4], ecx
inc ebp
cmp eax, ebp
jne 0x404f60
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov ebp, edx
jmp 0x404c68
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x218]
mov byte [ecx], al
mov byte [ecx + 1], 1
mov byte [ecx + 2], al
mov eax, dword [esp + 0x54]
mov byte [ecx + 3], al
mov esi, dword [esp + 0x58]
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.0040d9a4
mov eax, esi
add esp, 0x204
pop esi
pop edi
pop ebx
pop ebp
ret