Function at 0x1004df40
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 0x1004df9c
mov ecx, dword [ebx + 4]
cmp byte [ecx + 0xc], 0
jne 0x1004df9c
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.1004df40
mov edx, dword [esp + 0x7c]
cmp byte [edx + 4], 0
jne 0x1004e036
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 0x1004dfdb
mov eax, dword [esi]
test eax, eax
je 0x1004e00c
cmp dword [eax], 0
jne 0x1004e00c
mov dword [eax], 0x12
jmp 0x1004e00c
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 0x1004e00c
xor eax, eax
test ecx, ecx
je 0x1004e004
mov byte [esi + eax + 0x10], 0xff
inc eax
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jb 0x1004dff7
lea eax, [ecx + esi]
not dl
and byte [eax + 0xf], dl
cmp byte [esi + 4], 0
jne 0x1004e032
cmp byte [edi + 8], 0
je 0x1004e61a
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 0x1004e61a
mov ebx, dword [esp + 0x14]
cmp byte [ebx + 0xf9], 0
je 0x1004e0c4
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.1004dd60
mov ecx, dword [esp + 0x10]
lea eax, [ebx + 0x10c]
push eax
lea edx, [esp + 0x44]
call fcn.1004dd60
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 0x1004e316
test byte [edi], dl
je 0x1004e2db
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 0x1004e10b
mov eax, dword [ebp + 4]
test eax, eax
je 0x1004e109
cmp dword [eax], esi
jne 0x1004e109
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 0x1004e12e
mov esi, ecx
mov ecx, 1
jmp 0x1004e146
cmp eax, 0xffec0000
jne 0x1004e139
xor ecx, ecx
jmp 0x1004e146
mov esi, ecx
test eax, eax
js 0x1004e141
mov esi, edi
mov ecx, 4
mov edi, ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x18], ecx
and edi, 0xa
je 0x1004e162
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 0x1004e1a6
cmp byte [edx], 0
je 0x1004e1a6
test edi, edi
je 0x1004e196
mov eax, dword [edx + 0x10]
or ecx, 0x10
mov dword [esp + 0x18], ecx
mov dword [esp + 0x40], ecx
jmp 0x1004e1af
mov eax, dword [edx + 0xc]
or ecx, 0x10
mov dword [esp + 0x18], ecx
mov dword [esp + 0x40], ecx
jmp 0x1004e1af
mov edx, eax
mov ecx, esi
call fcn.10032a20
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 0x1004e1e2
mov eax, dword [ebp + 4]
test eax, eax
je 0x1004e1e0
cmp dword [eax], ecx
jne 0x1004e1e0
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 0x1004e200
xor ebx, ebx
jmp 0x1004e21b
mov ecx, esi
cmp eax, 0xffec0000
jne 0x1004e210
mov ebx, 2
jmp 0x1004e21b
mov ebx, 8
test eax, eax
js 0x1004e21b
mov ecx, edi
mov esi, ebx
mov dword [esp + 0x2c], ebx
and esi, 0xa
je 0x1004e233
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 0x1004e273
cmp byte [edx], 0
je 0x1004e273
test esi, esi
je 0x1004e267
mov eax, dword [edx + 0x10]
or ebx, 0x10
mov dword [esp + 0x2c], ebx
jmp 0x1004e27a
mov eax, dword [edx + 0xc]
or ebx, 0x10
mov dword [esp + 0x2c], ebx
jmp 0x1004e27a
mov edx, edi
call fcn.10032a20
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
shr eax, 4
test al, 1
jne 0x1004e2ad
shr ebx, 4
test bl, 1
jne 0x1004e2ad
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
lea ecx, [ecx + 0xf0]
call fcn.1004cb30
test al, al
je 0x1004e2cf
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
call fcn.1004dd60
mov dl, byte [esp + 0x78]
mov edi, dword [esp + 0x20]
mov al, dl
not al
and byte [edi], al
jmp 0x1004e2d7
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 0x1004e2e9
mov dl, 0x80
jmp 0x1004e2eb
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 0x1004e0d8
lea esi, [ecx + 0x14]
cmp byte [esp + 0x84], 0
je 0x1004e37f
mov eax, dword [esi]
test eax, eax
je 0x1004e336
cmp dword [ecx + 0x24], 0
jg 0x1004e336
lea eax, [eax + eax*4]
cmp dword [ecx + eax*4 + 0x10], 0
jge 0x1004e375
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.1004dd60
mov ecx, dword [esp + 0x10]
call fcn.1004da80
jmp 0x1004e60a
lea ebx, [esp + 0x64]
mov dl, 0x80
xor edi, edi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x84], dl
test eax, eax
jne 0x1004e404
mov ebx, dword [esp + 0x10]
mov edi, esi
call fcn.1004da80
xor esi, esi
cmp dword [edi], esi
jbe 0x1004e60a
lea ecx, [ebx + 0x1c]
nop
mov eax, dword [ecx]
shr eax, 5
test al, 1
jne 0x1004e5fe
mov edx, dword [ecx + 4]
cmp edx, dword [ebp + 0x14]
jb 0x1004e3d9
mov eax, dword [ebp + 4]
test eax, eax
je 0x1004e3d7
cmp dword [eax], 0
jne 0x1004e3d7
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 0x1004e5f8
mov dword [eax + 0x10], edx
jmp 0x1004e5fb
mov ecx, dword [esp + 0x10]
test byte [ebx], dl
je 0x1004e5b9
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 0x1004e437
mov eax, dword [ebp + 4]
test eax, eax
je 0x1004e435
cmp dword [eax], esi
jne 0x1004e435
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 0x1004e45a
mov esi, ecx
mov ecx, 1
jmp 0x1004e472
cmp eax, 0xffec0000
jne 0x1004e465
xor ecx, ecx
jmp 0x1004e472
mov esi, ecx
test eax, eax
js 0x1004e46d
mov esi, ebx
mov ecx, 4
mov ebx, ecx
mov dword [esp + 0x2c], ecx
and ebx, 0xa
je 0x1004e48a
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 0x1004e4c6
cmp byte [edx], 0
je 0x1004e4c6
test ebx, ebx
je 0x1004e4ba
mov eax, dword [edx + 0x10]
or ecx, 0x10
mov dword [esp + 0x2c], ecx
jmp 0x1004e4cf
mov eax, dword [edx + 0xc]
or ecx, 0x10
mov dword [esp + 0x2c], ecx
jmp 0x1004e4cf
mov edx, eax
mov ecx, esi
call fcn.10032a20
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 0x1004e502
mov eax, dword [ebp + 4]
test eax, eax
je 0x1004e500
cmp dword [eax], esi
jne 0x1004e500
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 0x1004e520
xor ecx, ecx
jmp 0x1004e53b
mov esi, ecx
cmp eax, 0xffec0000
jne 0x1004e530
mov ecx, 2
jmp 0x1004e53b
test eax, eax
js 0x1004e536
mov esi, ebx
mov ecx, 8
mov ebx, ecx
mov dword [esp + 0x40], ecx
and ebx, 0xa
je 0x1004e553
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 0x1004e58f
cmp byte [edx], 0
je 0x1004e58f
test ebx, ebx
je 0x1004e583
mov eax, dword [edx + 0x10]
or ecx, 0x10
mov dword [esp + 0x40], ecx
jmp 0x1004e598
mov eax, dword [edx + 0xc]
or ecx, 0x10
mov dword [esp + 0x40], ecx
jmp 0x1004e598
mov edx, eax
mov ecx, esi
call fcn.10032a20
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x2c]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x40]
push eax
call fcn.1004dd60
mov dl, byte [esp + 0x84]
mov ebx, dword [esp + 0x78]
mov ecx, edi
and ecx, 7
cmp ecx, 7
jne 0x1004e5c7
mov dl, 0x80
jmp 0x1004e5c9
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 0x1004e400
mov ebx, dword [esp + 0x10]
mov ecx, ebx
lea edi, [ebx + 0x14]
jmp 0x1004e39c
mov dword [eax + 0xc], edx
mov byte [eax], 1
inc esi
add ecx, 0x14
cmp esi, dword [edi]
jb 0x1004e3b0
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