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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xf0
cmp byte [edx], 0x14
mov dword [esp + 0x14], ecx
jne 0x404b95
mov eax, dword [edx + 4]
mov esi, dword [edx + 0xc]
mov dword [esp + 0x30], eax
call fcn.005f7ce0
test eax, eax
je 0x404bb4
mov ecx, esi
mov edx, 0x1000
mov dword [esp + 0x10], esi
mov edi, dword [eax]
mov ebx, dword [eax + 4]
shl ecx, 4
cmp esi, edx
cmovb edx, esi
mov esi, dword [eax + 0xc]
mov dword [esp + 0x2c], ecx
mov ecx, edi
add ecx, 1
mov dword [esp + 0xc], esi
mov esi, dword [eax + 8]
mov dword [eax], ecx
mov ecx, ebx
adc ecx, 0
mov dword [eax + 4], ecx
mov dword [esp + 8], esi
lea esi, [esp + 0x18]
mov ecx, esi
call fcn.00404e5e
mov eax, dword [esi]
test eax, eax
je 0x404802
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x34], esi
jmp 0x40480a
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
lea esi, [esp + 0x58]
mov dword [esi - 8], eax
mov dword [esi - 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [esi], edx
mov edx, dword [esp + 0x30]
mov dword [esi + 4], ecx
lea ecx, [esp + 0x60]
add dword [esp + 0x2c], edx
mov esi, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [ecx], edi
mov edi, dword [esp + 0x10]
mov dword [ecx + 4], ebx
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], edx
and edi, 0xfffffff
mov dword [esp + 0x10], edi
mov esi, dword [esp + 0x30]
cmp esi, dword [esp + 0x2c]
je 0x404a8f
cmp byte [esi], 0x13
mov edx, esi
jne 0x404862
mov edx, dword [esi + 4]
lea ecx, [esp + 0x18]
call fcn.00405090
cmp dword [esp + 0x18], 0
mov ebx, dword [esp + 0x1c]
jne 0x404b3d
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x64]
add esi, 0x10
mov dword [esp + 0x30], esi
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x44]
mov dword [esp + 0x44], ebx
push eax
push dword [esp + 0x70]
push dword [esp + 0x70]
call fcn.00404bd5
add esp, 0xc
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x40], 0
mov edx, ecx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x4c]
and edx, eax
shr eax, 0x19
test ebx, ebx
movd xmm0, eax
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x48]
punpcklbw xmm0, xmm0
pshuflw xmm0, xmm0, 0
mov dword [esp + 0x80], ecx
pshufd xmm1, xmm0, 0
cmove ebx, eax
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x50]
movdqa xmmword [esp + 0xd0], xmm1
mov dword [esp + 0x84], ebx
mov dword [esp + 8], eax
movdqu xmm0, xmmword [eax + edx]
mov dword [esp + 0x34], edx
movdqa xmmword [esp + 0xc0], xmm0
pcmpeqb xmm0, xmm1
pmovmskb edi, xmm0
test di, di
je 0x40498c
mov eax, edi
mov ebx, dword [esp + 8]
bsf ecx, eax
lea edi, [eax - 1]
add ecx, edx
and edi, eax
and ecx, dword [esp + 0xc]
neg ecx
imul eax, ecx, 0xc
mov esi, dword [ebx + eax - 0xc]
test esi, esi
jne 0x40495f
mov esi, dword [ebx + eax - 8]
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
push dword [ebx + eax - 4]
push esi
call fcn.004bdd23
pop ecx
pop edx
mov edx, dword [esp + 0x34]
movdqa xmm1, xmmword [esp + 0xd0]
test al, al
je 0x404935
jmp 0x4049c1
movdqa xmm2, xmmword [esp + 0xc0]
pcmpeqd xmm0, xmm0
pcmpeqb xmm2, xmm0
pmovmskb eax, xmm2
test eax, eax
jne 0x4049d7
mov eax, dword [esp + 0x40]
lea edx, [edx + eax + 0x10]
add eax, 0x10
mov dword [esp + 0x40], eax
and edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
jmp 0x40491b
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
call fcn.00404e53
mov edi, dword [esp + 0x10]
jmp 0x40484a
mov eax, dword [esp + 0x4c]
movsd xmm0, qword [esp + 0x44]
mov esi, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x20], eax
movsd qword [esp + 0x18], xmm0
mov ecx, esi
push dword [esp + 0x38]
push dword [esp + 0x40]
call fcn.004c21d1
pop ecx
pop edx
movzx ebx, byte [esi + eax]
mov esi, dword [esp + 0x58]
and ebx, 1
test esi, esi
jne 0x404a4d
mov edi, dword [esp + 0x10]
test bl, bl
je 0x404a51
lea ecx, [esp + 0x50]
lea edx, [esp + 0x60]
call fcn.0063b890
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov esi, dword [esp + 0x58]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
push dword [esp + 0x38]
push dword [esp + 0x40]
call fcn.004c21d1
pop ecx
pop edx
jmp 0x404a51
mov edi, dword [esp + 0x10]
lea ecx, [eax - 0x10]
sub esi, ebx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x58], esi
mov esi, dword [esp + 8]
and ecx, dword [esp + 0xc]
mov byte [esi + eax], dl
mov byte [ecx + esi + 0x10], dl
neg eax
inc dword [esp + 0x5c]
mov ecx, dword [esp + 0x20]
imul eax, eax, 0xc
mov dword [esi + eax - 4], ecx
movq xmm0, qword [esp + 0x18]
movq qword [esi + eax - 0xc], xmm0
jmp 0x40484a
lea ecx, [esp + 0x58]
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x54]
movsd xmm1, qword [ecx + 8]
movq xmm0, qword [ecx]
test eax, eax
movsd qword [esp + 0xb0], xmm1
movq xmm1, qword [ecx + 0x10]
movq qword [esp + 0xa8], xmm0
movq qword [esp + 0xb8], xmm1
je 0x404b46
movq xmm0, qword [esp + 0xb8]
movq xmm2, qword [esp + 0xa8]
movq xmm1, qword [esp + 0xb0]
lea ecx, [esp + 0x50]
movq qword [esp + 0xa0], xmm0
movq qword [esp + 0x98], xmm1
movq qword [esp + 0x90], xmm2
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x8c], ebx
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], edi
call fcn.0055bc77
test eax, eax
je 0x404b58
mov ecx, dword [esp + 0x14]
mov dword [ecx + 4], eax
and dword [ecx], 0
lea ecx, [esp + 0x88]
call fcn.005611fa
jmp 0x404b50
lea ecx, [esp + 0x50]
call fcn.005611fa
mov eax, dword [esp + 0x14]
mov dword [eax + 4], ebx
and dword [eax], 0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x14]
movsd xmm1, qword [esp + 0x98]
movq xmm0, qword [esp + 0xa0]
movq xmm2, qword [esp + 0x88]
movsd qword [eax + 0x10], xmm1
movq xmm1, qword [esp + 0x90]
movq qword [eax + 0x18], xmm0
movq qword [eax], xmm2
movq qword [eax + 8], xmm1
jmp 0x404b50
lea eax, [esp + 0x18]
mov ecx, edx
mov edx, eax
push 0x664824
call fcn.00640106
pop ecx
mov ecx, dword [esp + 0x14]
mov dword [ecx + 4], eax
and dword [ecx], 0
jmp 0x404b50
lea eax, [esp + 0x18]
push 0x46
pop edx
mov ecx, 0xa38c3c
push 0xa38cd4
push 0x6649d4
push eax
call fcn.0063cff0
add esp, 0xc
ud2