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

Disassembly:
sub esp, 0x64
cmp byte [esp + 0x74], 0
push ebx
push ebp
mov ebx, ecx
mov ebp, edx
push esi
mov esi, dword [esp + 0x74]
push edi
mov edi, dword [ebx]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edi
jne 0x1004dabc
mov ecx, dword [ebx + 4]
cmp byte [ecx + 0xc], 0
jne 0x1004dabc
mov eax, dword [esp + 0x7c]
xorps xmm0, xmm0
push 1
push dword [esp + 0x84]
movlpd qword [esp + 0x60], xmm0
mov eax, dword [eax]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x5c]
push eax
push esi
movlpd qword [esp + 0x70], xmm0
movlpd qword [esp + 0x78], xmm0
call fcn.1004da60
mov edx, dword [esp + 0x7c]
cmp byte [edx + 4], 0
jne 0x1004db56
mov eax, dword [esi + 0x14]
mov edx, 1
add eax, dword [ebp + 0x14]
mov esi, dword [esp + 0x7c]
mov ecx, eax
neg ecx
and ecx, 7
shl edx, cl
dec edx
cmp eax, 0x60
jbe 0x1004dafb
mov eax, dword [esi]
test eax, eax
je 0x1004db2c
cmp dword [eax], 0
jne 0x1004db2c
mov dword [eax], 0x12
jmp 0x1004db2c
lea ecx, [eax + 7]
mov dword [esi + 8], eax
shr ecx, 3
mov dword [esi + 0xc], ecx
mov word [esi + 4], 0x101
test eax, eax
je 0x1004db2c
xor eax, eax
test ecx, ecx
je 0x1004db24
mov byte [esi + eax + 0x10], 0xff
inc eax
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jb 0x1004db17
lea eax, [ecx + esi]
not dl
and byte [eax + 0xf], dl
cmp byte [esi + 4], 0
jne 0x1004db52
cmp byte [edi + 8], 0
je 0x1004e13a
mov eax, dword [esi]
mov dword [eax], 0
mov byte [ebx + 0xd], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 0x10
mov edx, dword [esp + 0x7c]
mov ecx, ebx
lea edi, [esp + 0x64]
mov dword [ecx + 0x14], 0
lea esi, [ecx + 0x14]
mov dword [esp + 0x20], edi
mov dword [ecx + 0x18], 0
movups xmm0, xmmword [edx]
mov eax, dword [edx + 0x18]
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 0x14]
movups xmmword [esp + 0x54], xmm0
mov dword [esp + 0x24], eax
movq xmm0, qword [edx + 0x10]
movq qword [esp + 0x64], xmm0
cmp eax, dword [edx + 8]
ja 0x1004e13a
mov ebx, dword [esp + 0x14]
cmp byte [ebx + 0xf9], 0
je 0x1004dbe4
lea eax, [esp + 0x40]
mov dword [esp + 0x50], 0
xorps xmm0, xmm0
lea edx, [ebx + 0x120]
push eax
movups xmmword [esp + 0x44], xmm0
call fcn.1004d880
mov ecx, dword [esp + 0x10]
lea eax, [ebx + 0x10c]
push eax
lea edx, [esp + 0x44]
call fcn.1004d880
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 0x1004de36
test byte [edi], dl
je 0x1004ddfb
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 0x1004dc2b
mov eax, dword [ebp + 4]
test eax, eax
je 0x1004dc29
cmp dword [eax], esi
jne 0x1004dc29
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 0x1004dc4e
mov esi, ecx
mov ecx, 1
jmp 0x1004dc66
cmp eax, 0xffec0000
jne 0x1004dc59
xor ecx, ecx
jmp 0x1004dc66
mov esi, ecx
test eax, eax
js 0x1004dc61
mov esi, edi
mov ecx, 4
mov edi, ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x18], ecx
and edi, 0xa
je 0x1004dc82
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 0x1004dcc6
cmp byte [edx], 0
je 0x1004dcc6
test edi, edi
je 0x1004dcb6
mov eax, dword [edx + 0x10]
or ecx, 0x10
mov dword [esp + 0x18], ecx
mov dword [esp + 0x40], ecx
jmp 0x1004dccf
mov eax, dword [edx + 0xc]
or ecx, 0x10
mov dword [esp + 0x18], ecx
mov dword [esp + 0x40], ecx
jmp 0x1004dccf
mov edx, eax
mov ecx, esi
call fcn.10032530
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 0x1004dd02
mov eax, dword [ebp + 4]
test eax, eax
je 0x1004dd00
cmp dword [eax], ecx
jne 0x1004dd00
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 0x1004dd20
xor ebx, ebx
jmp 0x1004dd3b
mov ecx, esi
cmp eax, 0xffec0000
jne 0x1004dd30
mov ebx, 2
jmp 0x1004dd3b
mov ebx, 8
test eax, eax
js 0x1004dd3b
mov ecx, edi
mov esi, ebx
mov dword [esp + 0x2c], ebx
and esi, 0xa
je 0x1004dd53
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 0x1004dd93
cmp byte [edx], 0
je 0x1004dd93
test esi, esi
je 0x1004dd87
mov eax, dword [edx + 0x10]
or ebx, 0x10
mov dword [esp + 0x2c], ebx
jmp 0x1004dd9a
mov eax, dword [edx + 0xc]
or ebx, 0x10
mov dword [esp + 0x2c], ebx
jmp 0x1004dd9a
mov edx, edi
call fcn.10032530
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
shr eax, 4
test al, 1
jne 0x1004ddcd
shr ebx, 4
test bl, 1
jne 0x1004ddcd
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
lea ecx, [ecx + 0xf0]
call fcn.1004c650
test al, al
je 0x1004ddef
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
call fcn.1004d880
mov dl, byte [esp + 0x78]
mov edi, dword [esp + 0x20]
mov al, dl
not al
and byte [edi], al
jmp 0x1004ddf7
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 0x1004de09
mov dl, 0x80
jmp 0x1004de0b
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 0x1004dbf8
lea esi, [ecx + 0x14]
cmp byte [esp + 0x84], 0
je 0x1004de9f
mov eax, dword [esi]
test eax, eax
je 0x1004de56
cmp dword [ecx + 0x24], 0
jg 0x1004de56
lea eax, [eax + eax*4]
cmp dword [ecx + eax*4 + 0x10], 0
jge 0x1004de95
mov eax, dword [ecx + 0x10]
lea edx, [esp + 0x40]
mov dword [esp + 0x50], eax
xorps xmm0, xmm0
lea eax, [esp + 0x2c]
movlpd qword [esp + 0x44], xmm0
push eax
mov dword [esp + 0x50], 0
mov dword [esp + 0x44], 0x31
movups xmmword [esp + 0x30], xmm0
mov dword [esp + 0x40], 0
call fcn.1004d880
mov ecx, dword [esp + 0x10]
call fcn.1004d5a0
jmp 0x1004e12a
lea ebx, [esp + 0x64]
mov dl, 0x80
xor edi, edi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x84], dl
test eax, eax
jne 0x1004df24
mov ebx, dword [esp + 0x10]
mov edi, esi
call fcn.1004d5a0
xor esi, esi
cmp dword [edi], esi
jbe 0x1004e12a
lea ecx, [ebx + 0x1c]
nop
mov eax, dword [ecx]
shr eax, 5
test al, 1
jne 0x1004e11e
mov edx, dword [ecx + 4]
cmp edx, dword [ebp + 0x14]
jb 0x1004def9
mov eax, dword [ebp + 4]
test eax, eax
je 0x1004def7
cmp dword [eax], 0
jne 0x1004def7
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 0x1004e118
mov dword [eax + 0x10], edx
jmp 0x1004e11b
mov ecx, dword [esp + 0x10]
test byte [ebx], dl
je 0x1004e0d9
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 0x1004df57
mov eax, dword [ebp + 4]
test eax, eax
je 0x1004df55
cmp dword [eax], esi
jne 0x1004df55
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 0x1004df7a
mov esi, ecx
mov ecx, 1
jmp 0x1004df92
cmp eax, 0xffec0000
jne 0x1004df85
xor ecx, ecx
jmp 0x1004df92
mov esi, ecx
test eax, eax
js 0x1004df8d
mov esi, ebx
mov ecx, 4
mov ebx, ecx
mov dword [esp + 0x2c], ecx
and ebx, 0xa
je 0x1004dfaa
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 0x1004dfe6
cmp byte [edx], 0
je 0x1004dfe6
test ebx, ebx
je 0x1004dfda
mov eax, dword [edx + 0x10]
or ecx, 0x10
mov dword [esp + 0x2c], ecx
jmp 0x1004dfef
mov eax, dword [edx + 0xc]
or ecx, 0x10
mov dword [esp + 0x2c], ecx
jmp 0x1004dfef
mov edx, eax
mov ecx, esi
call fcn.10032530
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 0x1004e022
mov eax, dword [ebp + 4]
test eax, eax
je 0x1004e020
cmp dword [eax], esi
jne 0x1004e020
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 0x1004e040
xor ecx, ecx
jmp 0x1004e05b
mov esi, ecx
cmp eax, 0xffec0000
jne 0x1004e050
mov ecx, 2
jmp 0x1004e05b
test eax, eax
js 0x1004e056
mov esi, ebx
mov ecx, 8
mov ebx, ecx
mov dword [esp + 0x40], ecx
and ebx, 0xa
je 0x1004e073
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 0x1004e0af
cmp byte [edx], 0
je 0x1004e0af
test ebx, ebx
je 0x1004e0a3
mov eax, dword [edx + 0x10]
or ecx, 0x10
mov dword [esp + 0x40], ecx
jmp 0x1004e0b8
mov eax, dword [edx + 0xc]
or ecx, 0x10
mov dword [esp + 0x40], ecx
jmp 0x1004e0b8
mov edx, eax
mov ecx, esi
call fcn.10032530
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x2c]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x40]
push eax
call fcn.1004d880
mov dl, byte [esp + 0x84]
mov ebx, dword [esp + 0x78]
mov ecx, edi
and ecx, 7
cmp ecx, 7
jne 0x1004e0e7
mov dl, 0x80
jmp 0x1004e0e9
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 0x1004df20
mov ebx, dword [esp + 0x10]
mov ecx, ebx
lea edi, [ebx + 0x14]
jmp 0x1004debc
mov dword [eax + 0xc], edx
mov byte [eax], 1
inc esi
add ecx, 0x14
cmp esi, dword [edi]
jb 0x1004ded0
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