Function at 0x1004c900
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 0x1004c95c
mov ecx, dword [ebx + 4]
cmp byte [ecx + 0xc], 0
jne 0x1004c95c
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.1004c900
mov edx, dword [esp + 0x7c]
cmp byte [edx + 4], 0
jne 0x1004c9f6
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 0x1004c99b
mov eax, dword [esi]
test eax, eax
je 0x1004c9cc
cmp dword [eax], 0
jne 0x1004c9cc
mov dword [eax], 0x12
jmp 0x1004c9cc
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 0x1004c9cc
xor eax, eax
test ecx, ecx
je 0x1004c9c4
mov byte [esi + eax + 0x10], 0xff
inc eax
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jb 0x1004c9b7
lea eax, [ecx + esi]
not dl
and byte [eax + 0xf], dl
cmp byte [esi + 4], 0
jne 0x1004c9f2
cmp byte [edi + 8], 0
je 0x1004cfda
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 0x1004cfda
mov ebx, dword [esp + 0x14]
cmp byte [ebx + 0xf9], 0
je 0x1004ca84
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.1004c720
mov ecx, dword [esp + 0x10]
lea eax, [ebx + 0x10c]
push eax
lea edx, [esp + 0x44]
call fcn.1004c720
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 0x1004ccd6
test byte [edi], dl
je 0x1004cc9b
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 0x1004cacb
mov eax, dword [ebp + 4]
test eax, eax
je 0x1004cac9
cmp dword [eax], esi
jne 0x1004cac9
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 0x1004caee
mov esi, ecx
mov ecx, 1
jmp 0x1004cb06
cmp eax, 0xffec0000
jne 0x1004caf9
xor ecx, ecx
jmp 0x1004cb06
mov esi, ecx
test eax, eax
js 0x1004cb01
mov esi, edi
mov ecx, 4
mov edi, ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x18], ecx
and edi, 0xa
je 0x1004cb22
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 0x1004cb66
cmp byte [edx], 0
je 0x1004cb66
test edi, edi
je 0x1004cb56
mov eax, dword [edx + 0x10]
or ecx, 0x10
mov dword [esp + 0x18], ecx
mov dword [esp + 0x40], ecx
jmp 0x1004cb6f
mov eax, dword [edx + 0xc]
or ecx, 0x10
mov dword [esp + 0x18], ecx
mov dword [esp + 0x40], ecx
jmp 0x1004cb6f
mov edx, eax
mov ecx, esi
call fcn.100313d0
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 0x1004cba2
mov eax, dword [ebp + 4]
test eax, eax
je 0x1004cba0
cmp dword [eax], ecx
jne 0x1004cba0
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 0x1004cbc0
xor ebx, ebx
jmp 0x1004cbdb
mov ecx, esi
cmp eax, 0xffec0000
jne 0x1004cbd0
mov ebx, 2
jmp 0x1004cbdb
mov ebx, 8
test eax, eax
js 0x1004cbdb
mov ecx, edi
mov esi, ebx
mov dword [esp + 0x2c], ebx
and esi, 0xa
je 0x1004cbf3
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 0x1004cc33
cmp byte [edx], 0
je 0x1004cc33
test esi, esi
je 0x1004cc27
mov eax, dword [edx + 0x10]
or ebx, 0x10
mov dword [esp + 0x2c], ebx
jmp 0x1004cc3a
mov eax, dword [edx + 0xc]
or ebx, 0x10
mov dword [esp + 0x2c], ebx
jmp 0x1004cc3a
mov edx, edi
call fcn.100313d0
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
shr eax, 4
test al, 1
jne 0x1004cc6d
shr ebx, 4
test bl, 1
jne 0x1004cc6d
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
lea ecx, [ecx + 0xf0]
call fcn.1004b4f0
test al, al
je 0x1004cc8f
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
call fcn.1004c720
mov dl, byte [esp + 0x78]
mov edi, dword [esp + 0x20]
mov al, dl
not al
and byte [edi], al
jmp 0x1004cc97
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 0x1004cca9
mov dl, 0x80
jmp 0x1004ccab
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 0x1004ca98
lea esi, [ecx + 0x14]
cmp byte [esp + 0x84], 0
je 0x1004cd3f
mov eax, dword [esi]
test eax, eax
je 0x1004ccf6
cmp dword [ecx + 0x24], 0
jg 0x1004ccf6
lea eax, [eax + eax*4]
cmp dword [ecx + eax*4 + 0x10], 0
jge 0x1004cd35
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.1004c720
mov ecx, dword [esp + 0x10]
call fcn.1004c440
jmp 0x1004cfca
lea ebx, [esp + 0x64]
mov dl, 0x80
xor edi, edi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x84], dl
test eax, eax
jne 0x1004cdc4
mov ebx, dword [esp + 0x10]
mov edi, esi
call fcn.1004c440
xor esi, esi
cmp dword [edi], esi
jbe 0x1004cfca
lea ecx, [ebx + 0x1c]
nop
mov eax, dword [ecx]
shr eax, 5
test al, 1
jne 0x1004cfbe
mov edx, dword [ecx + 4]
cmp edx, dword [ebp + 0x14]
jb 0x1004cd99
mov eax, dword [ebp + 4]
test eax, eax
je 0x1004cd97
cmp dword [eax], 0
jne 0x1004cd97
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 0x1004cfb8
mov dword [eax + 0x10], edx
jmp 0x1004cfbb
mov ecx, dword [esp + 0x10]
test byte [ebx], dl
je 0x1004cf79
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 0x1004cdf7
mov eax, dword [ebp + 4]
test eax, eax
je 0x1004cdf5
cmp dword [eax], esi
jne 0x1004cdf5
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 0x1004ce1a
mov esi, ecx
mov ecx, 1
jmp 0x1004ce32
cmp eax, 0xffec0000
jne 0x1004ce25
xor ecx, ecx
jmp 0x1004ce32
mov esi, ecx
test eax, eax
js 0x1004ce2d
mov esi, ebx
mov ecx, 4
mov ebx, ecx
mov dword [esp + 0x2c], ecx
and ebx, 0xa
je 0x1004ce4a
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 0x1004ce86
cmp byte [edx], 0
je 0x1004ce86
test ebx, ebx
je 0x1004ce7a
mov eax, dword [edx + 0x10]
or ecx, 0x10
mov dword [esp + 0x2c], ecx
jmp 0x1004ce8f
mov eax, dword [edx + 0xc]
or ecx, 0x10
mov dword [esp + 0x2c], ecx
jmp 0x1004ce8f
mov edx, eax
mov ecx, esi
call fcn.100313d0
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 0x1004cec2
mov eax, dword [ebp + 4]
test eax, eax
je 0x1004cec0
cmp dword [eax], esi
jne 0x1004cec0
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 0x1004cee0
xor ecx, ecx
jmp 0x1004cefb
mov esi, ecx
cmp eax, 0xffec0000
jne 0x1004cef0
mov ecx, 2
jmp 0x1004cefb
test eax, eax
js 0x1004cef6
mov esi, ebx
mov ecx, 8
mov ebx, ecx
mov dword [esp + 0x40], ecx
and ebx, 0xa
je 0x1004cf13
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 0x1004cf4f
cmp byte [edx], 0
je 0x1004cf4f
test ebx, ebx
je 0x1004cf43
mov eax, dword [edx + 0x10]
or ecx, 0x10
mov dword [esp + 0x40], ecx
jmp 0x1004cf58
mov eax, dword [edx + 0xc]
or ecx, 0x10
mov dword [esp + 0x40], ecx
jmp 0x1004cf58
mov edx, eax
mov ecx, esi
call fcn.100313d0
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x2c]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x40]
push eax
call fcn.1004c720
mov dl, byte [esp + 0x84]
mov ebx, dword [esp + 0x78]
mov ecx, edi
and ecx, 7
cmp ecx, 7
jne 0x1004cf87
mov dl, 0x80
jmp 0x1004cf89
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 0x1004cdc0
mov ebx, dword [esp + 0x10]
mov ecx, ebx
lea edi, [ebx + 0x14]
jmp 0x1004cd5c
mov dword [eax + 0xc], edx
mov byte [eax], 1
inc esi
add ecx, 0x14
cmp esi, dword [edi]
jb 0x1004cd70
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