Function at 0x1004c0e0
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 ebx, edx
push edi
mov edi, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], edi
mov ebp, dword [edi]
mov dword [esp + 0x14], ebp
jne 0x1004c140
mov ecx, dword [edi + 4]
cmp byte [ecx + 0xc], 0
jne 0x1004c140
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.1004c0e0
mov ecx, dword [esp + 0x7c]
cmp byte [ecx + 4], 0
jne 0x1004c1f9
mov eax, dword [esi + 0x14]
mov edx, 1
add eax, dword [ebx + 0x14]
mov ecx, eax
neg ecx
and ecx, 7
shl edx, cl
dec edx
cmp eax, 0x60
jbe 0x1004c182
mov ecx, dword [esp + 0x7c]
mov eax, dword [ecx]
test eax, eax
je 0x1004c17d
cmp dword [eax], 0
jne 0x1004c17d
mov dword [eax], 0x12
lea esi, [ecx + 8]
jmp 0x1004c1d3
mov edi, dword [esp + 0x7c]
lea ecx, [eax + 7]
mov esi, dword [esp + 0x7c]
add esi, 8
shr ecx, 3
mov dword [edi + 0xc], ecx
mov word [edi + 4], 0x101
mov edi, dword [esp + 0x10]
mov dword [esi], eax
test eax, eax
je 0x1004c1cf
xor eax, eax
test ecx, ecx
je 0x1004c1c1
mov ebp, dword [esp + 0x7c]
mov byte [eax + ebp + 0x10], 0xff
inc eax
mov ecx, dword [ebp + 0xc]
cmp eax, ecx
jb 0x1004c1b0
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x7c]
not dl
and byte [eax + ecx + 0xf], dl
mov ecx, eax
jmp 0x1004c1d3
mov ecx, dword [esp + 0x7c]
cmp byte [ecx + 4], 0
jne 0x1004c1fc
cmp byte [ebp + 8], 0
je 0x1004c7d4
mov eax, dword [ecx]
mov dword [eax], 0
mov byte [edi + 0xd], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 0x10
lea esi, [ecx + 8]
mov dword [edi + 0x14], 0
lea edx, [esp + 0x64]
mov dword [edi + 0x18], 0
movups xmm0, xmmword [ecx]
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x6c], eax
mov eax, dword [ebx + 0x14]
movups xmmword [esp + 0x54], xmm0
mov dword [esp + 0x24], edx
movq xmm0, qword [ecx + 0x10]
movq qword [esp + 0x64], xmm0
mov dword [esp + 0x20], eax
cmp eax, dword [esi]
ja 0x1004c7d4
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
cmp byte [edi + 0xf9], 0
je 0x1004c284
lea eax, [esp + 0x40]
mov dword [esp + 0x50], 0
xorps xmm0, xmm0
lea edx, [edi + 0x120]
push eax
mov ecx, esi
movups xmmword [esp + 0x44], xmm0
call fcn.1004bef0
lea eax, [edi + 0x10c]
mov ecx, esi
push eax
lea edx, [esp + 0x44]
call fcn.1004bef0
lea edx, [esp + 0x64]
mov edi, dword [esp + 0x20]
mov al, 0x80
xor ebp, ebp
mov byte [esp + 0x78], al
test edi, edi
je 0x1004c4ce
test byte [edx], al
je 0x1004c49b
mov eax, dword [esi + 0x10]
xor esi, esi
mov dword [esp + 0x28], eax
mov eax, ebp
mov dword [esp + 0x40], 0
cmp ebp, dword [ebx + 0x14]
jb 0x1004c2cb
mov eax, dword [ebx + 4]
test eax, eax
je 0x1004c2c9
cmp dword [eax], esi
jne 0x1004c2c9
mov dword [eax], 0x82
xor eax, eax
mov edx, dword [ebx + 8]
imul edx, eax
add edx, dword [ebx + 0x1c]
mov ecx, dword [edx + 8]
mov eax, ecx
mov edi, dword [edx + 4]
sub eax, edi
cmp eax, 0xffeb0000
jne 0x1004c2ee
mov esi, ecx
mov ecx, 1
jmp 0x1004c306
cmp eax, 0xffec0000
jne 0x1004c2f9
xor ecx, ecx
jmp 0x1004c306
mov esi, ecx
test eax, eax
js 0x1004c301
mov esi, edi
mov ecx, 4
mov edi, ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x1c], ecx
and edi, 0xa
je 0x1004c322
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], ebp
test ecx, ecx
je 0x1004c366
cmp byte [edx], 0
je 0x1004c366
test edi, edi
je 0x1004c356
mov eax, dword [edx + 0x10]
or ecx, 0x10
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x40], ecx
jmp 0x1004c36f
mov eax, dword [edx + 0xc]
or ecx, 0x10
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x40], ecx
jmp 0x1004c36f
mov edx, eax
mov ecx, esi
call fcn.10030ca0
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, ebp
cmp ebp, dword [ebx + 0x14]
jb 0x1004c3a2
mov eax, dword [ebx + 4]
test eax, eax
je 0x1004c3a0
cmp dword [eax], ecx
jne 0x1004c3a0
mov dword [eax], 0x82
xor eax, eax
mov edx, dword [ebx + 8]
imul edx, eax
add edx, dword [ebx + 0x1c]
mov edi, dword [edx + 8]
mov eax, edi
mov esi, dword [edx + 4]
sub eax, esi
cmp eax, 0xffeb0000
jne 0x1004c3c0
xor ebx, ebx
jmp 0x1004c3db
mov ecx, esi
cmp eax, 0xffec0000
jne 0x1004c3d0
mov ebx, 2
jmp 0x1004c3db
mov ebx, 8
test eax, eax
js 0x1004c3db
mov ecx, edi
mov edi, dword [esp + 0x14]
mov esi, ebx
mov dword [esp + 0x2c], ebx
and esi, 0xa
je 0x1004c3f3
mov eax, dword [edi + 0xe8]
lea ecx, [ecx + eax*2]
add ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], ebp
test ebx, ebx
je 0x1004c42f
cmp byte [edx], 0
je 0x1004c42f
test esi, esi
je 0x1004c423
mov eax, dword [edx + 0x10]
or ebx, 0x10
mov dword [esp + 0x2c], ebx
jmp 0x1004c436
mov eax, dword [edx + 0xc]
or ebx, 0x10
mov dword [esp + 0x2c], ebx
jmp 0x1004c436
mov edx, eax
call fcn.10030ca0
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x1c]
shr eax, 4
test al, 1
jne 0x1004c465
shr ebx, 4
test bl, 1
jne 0x1004c465
lea eax, [esp + 0x2c]
push eax
lea ecx, [edi + 0xf0]
lea edx, [esp + 0x44]
call fcn.1004acf0
test al, al
je 0x1004c487
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
mov ecx, esi
call fcn.1004bef0
mov edx, dword [esp + 0x24]
mov ah, byte [esp + 0x78]
not ah
and byte [edx], ah
jmp 0x1004c48f
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x20]
mov al, byte [esp + 0x78]
mov ebx, dword [esp + 0x18]
mov ecx, ebp
and ecx, 7
cmp ecx, 7
jne 0x1004c4ac
mov byte [esp + 0x78], 0x80
jmp 0x1004c4b2
shr al, 1
mov byte [esp + 0x78], al
inc ebp
lea eax, [edx + 1]
cmp ecx, 7
cmovne eax, edx
mov edx, eax
mov al, byte [esp + 0x78]
mov dword [esp + 0x24], edx
cmp ebp, edi
jb 0x1004c298
cmp byte [esp + 0x84], 0
je 0x1004c538
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1004c4ef
cmp dword [esi + 0x24], 0
jg 0x1004c4ef
lea eax, [eax + eax*4]
cmp dword [esi + eax*4 + 0x10], 0
jge 0x1004c52c
mov eax, dword [esi + 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 ecx, esi
mov dword [esp + 0x50], 0
mov dword [esp + 0x44], 0x31
movups xmmword [esp + 0x30], xmm0
mov dword [esp + 0x40], 0
call fcn.1004bef0
mov ecx, esi
call fcn.1004bc70
jmp 0x1004c7c8
xor edi, edi
lea eax, [esp + 0x64]
mov dl, 0x80
mov dword [esp + 0x78], eax
mov byte [esp + 0x84], dl
cmp dword [esp + 0x20], edi
ja 0x1004c5c4
mov ebp, dword [esp + 0x18]
mov ecx, esi
call fcn.1004bc70
xor edi, edi
cmp dword [esi + 0x14], edi
jbe 0x1004c7c8
lea edx, [esi + 0x1c]
nop word [eax + eax]
mov ecx, dword [edx]
mov eax, ecx
shr eax, 5
test al, 1
jne 0x1004c7bb
mov esi, dword [edx + 4]
cmp esi, dword [ebp + 0x14]
jb 0x1004c59d
mov eax, dword [ebp + 4]
test eax, eax
je 0x1004c59b
cmp dword [eax], 0
jne 0x1004c59b
mov dword [eax], 0x82
mov ecx, dword [edx]
xor esi, esi
mov eax, dword [ebp + 8]
imul eax, esi
mov esi, dword [edx + 0xc]
add eax, dword [ebp + 0x1c]
test cl, 0xa
je 0x1004c7b1
mov dword [eax + 0x10], esi
jmp 0x1004c7b4
mov ebx, dword [esp + 0x18]
test byte [eax], dl
je 0x1004c779
mov ebp, dword [esi + 0x10]
mov eax, edi
xor esi, esi
mov dword [esp + 0x2c], 0
cmp edi, dword [ebx + 0x14]
jb 0x1004c5f3
mov eax, dword [ebx + 4]
test eax, eax
je 0x1004c5f1
cmp dword [eax], esi
jne 0x1004c5f1
mov dword [eax], 0x82
xor eax, eax
mov edx, dword [ebx + 8]
imul edx, eax
add edx, dword [ebx + 0x1c]
mov ecx, dword [edx + 8]
mov eax, ecx
mov ebx, dword [edx + 4]
sub eax, ebx
cmp eax, 0xffeb0000
jne 0x1004c616
mov esi, ecx
mov ecx, 1
jmp 0x1004c62e
cmp eax, 0xffec0000
jne 0x1004c621
xor ecx, ecx
jmp 0x1004c62e
mov esi, ecx
test eax, eax
js 0x1004c629
mov esi, ebx
mov ecx, 4
mov ebx, ecx
mov dword [esp + 0x2c], ecx
and ebx, 0xa
je 0x1004c646
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xe8]
lea esi, [esi + eax*2]
add esi, dword [esp + 0x80]
mov dword [esp + 0x34], esi
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x30], edi
test ecx, ecx
je 0x1004c67e
cmp byte [edx], 0
je 0x1004c67e
test ebx, ebx
je 0x1004c672
mov eax, dword [edx + 0x10]
or ecx, 0x10
mov dword [esp + 0x2c], ecx
jmp 0x1004c687
mov eax, dword [edx + 0xc]
or ecx, 0x10
mov dword [esp + 0x2c], ecx
jmp 0x1004c687
mov edx, ebp
mov ecx, esi
call fcn.10030ca0
mov ebp, dword [esp + 0x18]
xor esi, esi
mov dword [esp + 0x38], eax
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 0x1004c6be
mov eax, dword [ebp + 4]
test eax, eax
je 0x1004c6bc
cmp dword [eax], esi
jne 0x1004c6bc
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 0x1004c6dc
xor ecx, ecx
jmp 0x1004c6f7
mov esi, ecx
cmp eax, 0xffec0000
jne 0x1004c6ec
mov ecx, 2
jmp 0x1004c6f7
test eax, eax
js 0x1004c6f2
mov esi, ebx
mov ecx, 8
mov ebx, ecx
mov dword [esp + 0x40], ecx
and ebx, 0xa
je 0x1004c70f
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 0x1004c74b
cmp byte [edx], 0
je 0x1004c74b
test ebx, ebx
je 0x1004c73f
mov eax, dword [edx + 0x10]
or ecx, 0x10
mov dword [esp + 0x40], ecx
jmp 0x1004c754
mov eax, dword [edx + 0xc]
or ecx, 0x10
mov dword [esp + 0x40], ecx
jmp 0x1004c754
mov edx, eax
mov ecx, esi
call fcn.10030ca0
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x2c]
mov dword [esp + 0x4c], eax
mov ecx, esi
lea eax, [esp + 0x40]
push eax
call fcn.1004bef0
mov dl, byte [esp + 0x84]
mov eax, dword [esp + 0x78]
jmp 0x1004c77d
mov ebp, dword [esp + 0x18]
mov ecx, edi
and ecx, 7
cmp ecx, 7
jne 0x1004c78b
mov dl, 0x80
jmp 0x1004c78d
shr dl, 1
inc eax
mov byte [esp + 0x84], dl
inc edi
cmp ecx, 7
cmovne eax, dword [esp + 0x78]
mov dword [esp + 0x78], eax
cmp edi, dword [esp + 0x20]
jb 0x1004c5c0
jmp 0x1004c555
mov dword [eax + 0xc], esi
mov esi, dword [esp + 0x10]
mov byte [eax], 1
inc edi
add edx, 0x14
cmp edi, dword [esi + 0x14]
jb 0x1004c570
mov eax, dword [esp + 0x7c]
mov byte [esi + 0xc], 1
mov byte [eax + 5], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 0x10