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

Disassembly:
sub esp, 0x64
cmp byte [esp + 0x74], 0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x74]
mov ebp, edx
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
mov ebx, dword [edi]
mov dword [esp + 0x14], ebx
jne 0x1004b55d
mov ecx, dword [edi + 4]
cmp byte [ecx + 0xc], 0
jne 0x1004b55d
mov eax, dword [esp + 0x7c]
push 1
push dword [esp + 0x84]
vxorpd xmm0, xmm0, xmm0
mov eax, dword [eax]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x5c]
push eax
push esi
vmovlpd qword [esp + 0x68], xmm0
vmovlpd qword [esp + 0x70], xmm0
vmovlpd qword [esp + 0x78], xmm0
call fcn.1004b500
mov edx, dword [esp + 0x7c]
cmp byte [edx + 4], 0
jne 0x1004b607
mov edx, dword [esi + 0x14]
mov ecx, 1
add edx, dword [ebp + 0x14]
mov esi, dword [esp + 0x7c]
mov eax, edx
neg eax
and eax, 7
shlx ebx, ecx, eax
dec ebx
cmp edx, 0x60
jbe 0x1004b59f
mov eax, dword [esi]
test eax, eax
je 0x1004b5d5
cmp dword [eax], 0
jne 0x1004b5d5
mov dword [eax], 0x12
jmp 0x1004b5d5
lea ecx, [edx + 7]
mov dword [esi + 8], edx
shr ecx, 3
mov dword [esi + 0xc], ecx
mov word [esi + 4], 0x101
test edx, edx
je 0x1004b5d5
xor eax, eax
test ecx, ecx
je 0x1004b5cd
nop dword [eax + eax]
mov byte [esi + eax + 0x10], 0xff
inc eax
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jb 0x1004b5c0
lea eax, [ecx + esi]
not bl
and byte [eax + 0xf], bl
cmp byte [esi + 4], 0
jne 0x1004b5ff
mov eax, dword [esp + 0x14]
cmp byte [eax + 8], 0
je 0x1004bbea
mov eax, dword [esi]
mov dword [eax], 0
mov byte [edi + 0xd], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 0x10
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x7c]
mov ecx, edi
lea edi, [esp + 0x64]
mov dword [ecx + 0x14], 0
lea esi, [ecx + 0x14]
mov dword [esp + 0x20], edi
mov dword [ecx + 0x18], 0
vmovdqu xmm0, xmmword [edx]
mov eax, dword [edx + 0x18]
vmovdqu xmmword [esp + 0x54], xmm0
vmovq xmm0, qword [edx + 0x10]
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 0x14]
vmovq qword [esp + 0x64], xmm0
mov dword [esp + 0x24], eax
cmp eax, dword [edx + 8]
ja 0x1004bbea
cmp byte [ebx + 0xf9], 0
je 0x1004b695
lea eax, [esp + 0x40]
mov dword [esp + 0x50], 0
vpxor xmm0, xmm0, xmm0
push eax
lea edx, [ebx + 0x120]
vmovdqu xmmword [esp + 0x44], xmm0
call fcn.1004b310
mov ecx, dword [esp + 0x10]
lea eax, [ebx + 0x10c]
push eax
lea edx, [esp + 0x44]
call fcn.1004b310
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
xor ebx, ebx
mov dl, 0x80
mov byte [esp + 0x78], dl
mov dword [esp + 0x1c], ebx
test eax, eax
je 0x1004b8ee
nop dword [eax]
test byte [edi], dl
je 0x1004b8b3
mov eax, dword [ecx + 0x10]
xor esi, esi
mov dword [esp + 0x28], eax
mov eax, ebx
mov dword [esp + 0x40], 0
cmp ebx, dword [ebp + 0x14]
jb 0x1004b6e3
mov eax, dword [ebp + 4]
test eax, eax
je 0x1004b6e1
cmp dword [eax], esi
jne 0x1004b6e1
mov dword [eax], 0x82
xor eax, eax
mov edx, dword [ebp + 8]
imul edx, eax
add edx, dword [ebp + 0x1c]
mov ecx, dword [edx + 8]
mov eax, ecx
mov edi, dword [edx + 4]
sub eax, edi
cmp eax, 0xffeb0000
jne 0x1004b706
mov esi, ecx
mov ecx, 1
jmp 0x1004b71e
cmp eax, 0xffec0000
jne 0x1004b711
xor ecx, ecx
jmp 0x1004b71e
mov esi, ecx
test eax, eax
js 0x1004b719
mov esi, edi
mov ecx, 4
mov edi, ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x18], ecx
and edi, 0xa
je 0x1004b73a
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xe8]
lea esi, [esi + eax*2]
add esi, dword [esp + 0x80]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x48], esi
mov dword [esp + 0x50], eax
mov dword [esp + 0x44], ebx
test ecx, ecx
je 0x1004b77e
cmp byte [edx], 0
je 0x1004b77e
test edi, edi
je 0x1004b76e
mov eax, dword [edx + 0x10]
or ecx, 0x10
mov dword [esp + 0x18], ecx
mov dword [esp + 0x40], ecx
jmp 0x1004b787
mov eax, dword [edx + 0xc]
or ecx, 0x10
mov dword [esp + 0x18], ecx
mov dword [esp + 0x40], ecx
jmp 0x1004b787
mov edx, eax
mov ecx, esi
call fcn.10039080
mov dword [esp + 0x4c], eax
xor ecx, ecx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x2c], 0
mov eax, dword [eax + 0x10]
mov dword [esp + 0x28], eax
mov eax, ebx
cmp ebx, dword [ebp + 0x14]
jb 0x1004b7ba
mov eax, dword [ebp + 4]
test eax, eax
je 0x1004b7b8
cmp dword [eax], ecx
jne 0x1004b7b8
mov dword [eax], 0x82
xor eax, eax
mov edx, dword [ebp + 8]
imul edx, eax
add edx, dword [ebp + 0x1c]
mov edi, dword [edx + 8]
mov eax, edi
mov esi, dword [edx + 4]
sub eax, esi
cmp eax, 0xffeb0000
jne 0x1004b7d8
xor ebx, ebx
jmp 0x1004b7f3
mov ecx, esi
cmp eax, 0xffec0000
jne 0x1004b7e8
mov ebx, 2
jmp 0x1004b7f3
mov ebx, 8
test eax, eax
js 0x1004b7f3
mov ecx, edi
mov esi, ebx
mov dword [esp + 0x2c], ebx
and esi, 0xa
je 0x1004b80b
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xe8]
lea ecx, [ecx + eax*2]
add ecx, dword [esp + 0x80]
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x30], eax
test ebx, ebx
je 0x1004b84b
cmp byte [edx], 0
je 0x1004b84b
test esi, esi
je 0x1004b83f
mov eax, dword [edx + 0x10]
or ebx, 0x10
mov dword [esp + 0x2c], ebx
jmp 0x1004b852
mov eax, dword [edx + 0xc]
or ebx, 0x10
mov dword [esp + 0x2c], ebx
jmp 0x1004b852
mov edx, edi
call fcn.10039080
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
shr eax, 4
test al, 1
jne 0x1004b885
shr ebx, 4
test bl, 1
jne 0x1004b885
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
lea ecx, [ecx + 0xf0]
call fcn.1004a230
test al, al
je 0x1004b8a7
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
call fcn.1004b310
mov dl, byte [esp + 0x78]
mov edi, dword [esp + 0x20]
mov al, dl
not al
and byte [edi], al
jmp 0x1004b8af
mov dl, byte [esp + 0x78]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov ecx, ebx
and ecx, 7
cmp ecx, 7
jne 0x1004b8c1
mov dl, 0x80
jmp 0x1004b8c3
shr dl, 1
inc ebx
mov byte [esp + 0x78], dl
cmp ecx, 7
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x10]
lea eax, [edi + 1]
cmovne eax, edi
mov edi, eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
cmp ebx, eax
jb 0x1004b6b0
lea esi, [ecx + 0x14]
cmp byte [esp + 0x84], 0
je 0x1004b959
mov eax, dword [esi]
test eax, eax
je 0x1004b90e
cmp dword [ecx + 0x24], 0
jg 0x1004b90e
lea eax, [eax + eax*4]
cmp dword [ecx + eax*4 + 0x10], 0
jge 0x1004b94f
mov eax, dword [ecx + 0x10]
lea edx, [esp + 0x40]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x2c]
vxorpd xmm0, xmm0, xmm0
push eax
vmovlpd qword [esp + 0x48], xmm0
mov dword [esp + 0x50], 0
mov dword [esp + 0x44], 0x31
vmovdqu xmmword [esp + 0x30], xmm0
mov dword [esp + 0x40], 0
call fcn.1004b310
mov ecx, dword [esp + 0x10]
call fcn.1004b030
jmp 0x1004bbda
lea ebx, [esp + 0x64]
mov dl, 0x80
xor edi, edi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x84], dl
test eax, eax
jne 0x1004b9d4
mov ebx, dword [esp + 0x10]
mov edi, esi
call fcn.1004b030
xor esi, esi
cmp dword [edi], esi
jbe 0x1004bbda
lea ecx, [ebx + 0x1c]
mov eax, dword [ecx]
shr eax, 5
test al, 1
jne 0x1004bbce
mov edx, dword [ecx + 4]
cmp edx, dword [ebp + 0x14]
jb 0x1004b9b1
mov eax, dword [ebp + 4]
test eax, eax
je 0x1004b9af
cmp dword [eax], 0
jne 0x1004b9af
mov dword [eax], 0x82
xor edx, edx
mov eax, dword [ebp + 8]
imul eax, edx
mov edx, dword [ecx + 0xc]
add eax, dword [ebp + 0x1c]
test byte [ecx], 0xa
je 0x1004bbc8
mov dword [eax + 0x10], edx
jmp 0x1004bbcb
mov ecx, dword [esp + 0x10]
test byte [ebx], dl
je 0x1004bb89
mov eax, dword [ecx + 0x10]
xor esi, esi
mov dword [esp + 0x28], eax
mov eax, edi
mov dword [esp + 0x2c], 0
cmp edi, dword [ebp + 0x14]
jb 0x1004ba07
mov eax, dword [ebp + 4]
test eax, eax
je 0x1004ba05
cmp dword [eax], esi
jne 0x1004ba05
mov dword [eax], 0x82
xor eax, eax
mov edx, dword [ebp + 8]
imul edx, eax
add edx, dword [ebp + 0x1c]
mov ecx, dword [edx + 8]
mov eax, ecx
mov ebx, dword [edx + 4]
sub eax, ebx
cmp eax, 0xffeb0000
jne 0x1004ba2a
mov esi, ecx
mov ecx, 1
jmp 0x1004ba42
cmp eax, 0xffec0000
jne 0x1004ba35
xor ecx, ecx
jmp 0x1004ba42
mov esi, ecx
test eax, eax
js 0x1004ba3d
mov esi, ebx
mov ecx, 4
mov ebx, ecx
mov dword [esp + 0x2c], ecx
and ebx, 0xa
je 0x1004ba5a
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xe8]
lea esi, [esi + eax*2]
add esi, dword [esp + 0x80]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x34], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], edi
test ecx, ecx
je 0x1004ba96
cmp byte [edx], 0
je 0x1004ba96
test ebx, ebx
je 0x1004ba8a
mov eax, dword [edx + 0x10]
or ecx, 0x10
mov dword [esp + 0x2c], ecx
jmp 0x1004ba9f
mov eax, dword [edx + 0xc]
or ecx, 0x10
mov dword [esp + 0x2c], ecx
jmp 0x1004ba9f
mov edx, eax
mov ecx, esi
call fcn.10039080
mov dword [esp + 0x38], eax
xor esi, esi
mov eax, dword [esp + 0x10]
mov dword [esp + 0x40], 0
mov eax, dword [eax + 0x10]
mov dword [esp + 0x28], eax
mov eax, edi
cmp edi, dword [ebp + 0x14]
jb 0x1004bad2
mov eax, dword [ebp + 4]
test eax, eax
je 0x1004bad0
cmp dword [eax], esi
jne 0x1004bad0
mov dword [eax], 0x82
xor eax, eax
mov edx, dword [ebp + 8]
imul edx, eax
add edx, dword [ebp + 0x1c]
mov ebx, dword [edx + 8]
mov eax, ebx
mov ecx, dword [edx + 4]
sub eax, ecx
cmp eax, 0xffeb0000
jne 0x1004baf0
xor ecx, ecx
jmp 0x1004bb0b
mov esi, ecx
cmp eax, 0xffec0000
jne 0x1004bb00
mov ecx, 2
jmp 0x1004bb0b
test eax, eax
js 0x1004bb06
mov esi, ebx
mov ecx, 8
mov ebx, ecx
mov dword [esp + 0x40], ecx
and ebx, 0xa
je 0x1004bb23
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xe8]
lea esi, [esi + eax*2]
add esi, dword [esp + 0x80]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x48], esi
mov dword [esp + 0x50], eax
mov dword [esp + 0x44], edi
test ecx, ecx
je 0x1004bb5f
cmp byte [edx], 0
je 0x1004bb5f
test ebx, ebx
je 0x1004bb53
mov eax, dword [edx + 0x10]
or ecx, 0x10
mov dword [esp + 0x40], ecx
jmp 0x1004bb68
mov eax, dword [edx + 0xc]
or ecx, 0x10
mov dword [esp + 0x40], ecx
jmp 0x1004bb68
mov edx, eax
mov ecx, esi
call fcn.10039080
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x2c]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x40]
push eax
call fcn.1004b310
mov dl, byte [esp + 0x84]
mov ebx, dword [esp + 0x78]
mov ecx, edi
and ecx, 7
cmp ecx, 7
jne 0x1004bb97
mov dl, 0x80
jmp 0x1004bb99
shr dl, 1
inc edi
mov byte [esp + 0x84], dl
cmp ecx, 7
lea eax, [ebx + 1]
cmovne eax, ebx
mov ebx, eax
mov dword [esp + 0x78], ebx
cmp edi, dword [esp + 0x24]
jb 0x1004b9d0
mov ebx, dword [esp + 0x10]
mov ecx, ebx
lea edi, [ebx + 0x14]
jmp 0x1004b976
mov dword [eax + 0xc], edx
mov byte [eax], 1
inc esi
add ecx, 0x14
cmp esi, dword [edi]
jb 0x1004b988
mov eax, dword [esp + 0x10]
mov byte [eax + 0xc], 1
mov eax, dword [esp + 0x7c]
mov byte [eax + 5], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 0x10