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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xd0
mov esi, edx
mov dword [esp + 0x40], ecx
lea eax, [esp + 0x70]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.101769e0
add esp, 0xc
mov edi, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
test edi, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x28], ecx
cmove edi, eax
test ecx, ecx
je 0x1006061c
setns al
js 0x10060eab
mov byte [esp], al
mov eax, dword [0x1044f00c]
mov ebx, dword [0x1044eff8]
movzx eax, byte [eax]
mov eax, dword [ebx]
test eax, eax
jne 0x100605f4
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x10060606
mov dword [ebx], eax
push dword [esp + 0x28]
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
mov ebx, eax
test eax, eax
jne 0x10060621
movzx eax, byte [esp]
push dword [esp + 0x28]
push eax
call fcn.1001ac80
add esp, 8
jmp 0x10060ee0
mov ebx, 1
mov eax, dword [esp + 0x28]
push eax
push edi
mov edi, eax
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
add esi, 0x20
lea ecx, [esp + 0x58]
mov edx, esi
call fcn.100544d0
mov eax, dword [esp + 0x58]
lea ecx, [esp + 0x88]
push dword [esp + 0x60]
mov dword [esp + 0x50], eax
push eax
push edi
push ebx
push ecx
call fcn.1002b3c0
add esp, 0x14
mov eax, dword [esp + 0xb8]
cmp dword [esp + 0x88], 0
mov dword [esp + 0x48], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0xbc]
mov dword [esp], eax
je 0x1006084f
mov edx, dword [esp + 0xc4]
mov ebx, dword [esp + 0xa8]
mov dword [esp + 0x10], ebx
sub ebx, edx
mov ecx, edx
mov dword [esp + 4], edx
cmp ebx, eax
jae 0x10060859
mov eax, dword [esp + 0xc0]
mov edx, dword [esp + 0x9c]
mov esi, dword [esp + 0x90]
mov edi, dword [esp + 0x94]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0xa0]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edx
cmp edx, eax
mov ecx, eax
mov dword [esp + 0x34], esi
cmova ecx, edx
cmp dword [esp + 0xac], 0xffffffff
mov dword [esp + 0x2c], ecx
je 0x100608ef
mov ecx, dword [esp + 8]
mov edi, dword [esp + 0xb0]
mov esi, eax
neg esi
mov dword [esp + 0x38], esi
sub ecx, eax
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 8]
xor edx, edx
movzx ecx, byte [eax + ebx]
mov eax, 1
shld edx, eax, cl
shl eax, cl
test cl, 0x20
mov ecx, 0
cmovne edx, eax
cmovne eax, ecx
and edx, dword [esp + 0x1c]
and eax, dword [esp + 0x20]
or eax, edx
jne 0x10060799
nop
lea eax, [esi + ebx]
cmp eax, dword [esp]
jae 0x10060859
mov eax, dword [esp + 0x14]
xor edx, edx
movzx ecx, byte [eax + ebx]
mov eax, 1
sub ebx, dword [esp + 4]
shld edx, eax, cl
shl eax, cl
test cl, 0x20
mov ecx, 0
cmovne edx, eax
cmovne eax, ecx
and edx, dword [esp + 0x1c]
and eax, dword [esp + 0x20]
or eax, edx
je 0x10060750
mov edi, dword [esp + 4]
lea eax, [edi + ebx]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
mov ecx, edi
cmp eax, edi
lea esi, [edx + ebx]
cmovb ecx, eax
dec ecx
nop dword [eax]
cmp ecx, 0xffffffff
je 0x100607f4
cmp ecx, dword [esp + 4]
jae 0x10060cf1
lea edx, [ebx + ecx]
cmp edx, dword [esp]
jae 0x10060cff
mov eax, dword [esp + 0xc]
lea edx, [ecx - 1]
movzx eax, byte [eax + ecx]
cmp al, byte [esi + ecx]
mov ecx, edx
je 0x100607b0
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 4]
sub ebx, dword [esp + 0x18]
mov edi, eax
lea ebx, [ebx + edx + 1]
mov edx, dword [esp]
jmp 0x1006083b
mov ecx, dword [esp + 0x18]
mov edx, dword [esp]
cmp edi, ecx
cmovbe edi, ecx
cmp edi, ecx
je 0x10060ad9
cmp dword [esp + 0x2c], ecx
je 0x10060d15
lea eax, [ebx + ecx]
cmp eax, edx
jae 0x10060eb5
mov eax, dword [esp + 0xc]
movzx eax, byte [eax + ecx]
cmp al, byte [esi + ecx]
lea ecx, [ecx + 1]
je 0x10060800
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 4]
sub ebx, edi
mov esi, dword [esp + 0x38]
mov dword [esp + 0x10], ebx
sub ebx, eax
cmp ebx, edx
jb 0x10060721
jmp 0x10060859
cmp byte [esp + 0x96], 0
je 0x100608bc
mov eax, dword [esp + 0x40]
mov dword [eax], 0
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cmp dword [esp + 0x5c], 0
je 0x10060884
mov eax, dword [0x1044eff8]
push dword [esp + 0x4c]
push 0
push dword [eax]
call sub.KERNEL32.dll_HeapFree
test edi, edi
je 0x1006089a
mov eax, dword [0x1044eff8]
push dword [esp + 0x48]
push 0
push dword [eax]
call sub.KERNEL32.dll_HeapFree
test esi, esi
je 0x100608b4
cmp dword [esp + 0x3c], 0
je 0x100608b4
mov eax, dword [0x1044eff8]
push esi
push 0
push dword [eax]
call sub.KERNEL32.dll_HeapFree
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp + 0x90]
movzx ebx, byte [esp + 0x95]
test ecx, ecx
je 0x10060a5a
cmp ecx, dword [esp]
jae 0x10060a67
mov esi, dword [esp + 8]
cmp byte [esi + ecx], 0xc0
jge 0x10060a71
jmp 0x10060cb6
lea edi, [edx - 1]
cmp edi, eax
mov dword [esp + 0x30], edi
jae 0x10060d2f
mov edx, dword [esp + 8]
mov ecx, eax
neg ecx
mov dword [esp + 0x54], ecx
sub edx, eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x50], edx
add eax, edi
mov dword [esp + 0x44], eax
mov eax, dword [esp + 8]
xor edx, edx
mov esi, 1
movzx ecx, byte [eax + ebx]
mov eax, 1
shld edx, eax, cl
shl esi, cl
test cl, 0x20
mov eax, 0
cmovne edx, esi
cmovne esi, eax
and edx, dword [esp + 0x1c]
and esi, dword [esp + 0x20]
or esi, edx
je 0x10060960
mov esi, dword [esp + 0x10]
jmp 0x100609ae
mov eax, dword [esp + 0x54]
lea ecx, [eax + ebx]
cmp ecx, dword [esp]
jae 0x10060859
mov eax, dword [esp + 0x50]
xor edx, edx
mov esi, 1
movzx ecx, byte [eax + ebx]
mov eax, 1
sub ebx, dword [esp + 4]
shld edx, eax, cl
shl esi, cl
test cl, 0x20
mov eax, 0
cmovne edx, esi
cmovne esi, eax
and edx, dword [esp + 0x1c]
and esi, dword [esp + 0x20]
or esi, edx
je 0x10060960
mov eax, dword [esp + 4]
lea esi, [eax + ebx]
lea ecx, [edi + ebx]
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x10], esi
mov dword [esp + 0x38], ebx
nop word cs:[eax + eax]
nop dword [eax + eax]
sub edx, 1
jb 0x100609fe
cmp ecx, dword [esp]
jae 0x10060d08
movzx eax, byte [edi]
mov ebx, dword [esp + 8]
dec esi
dec edi
mov byte [esp + 0x14], al
movzx eax, byte [esp + 0x14]
cmp al, byte [ebx + ecx]
mov ebx, dword [esp + 0x38]
lea ecx, [ecx - 1]
je 0x100609d0
jmp 0x10060a3e
mov eax, dword [esp + 8]
mov edi, dword [esp + 0x18]
lea ecx, [eax + ebx]
mov edx, edi
nop dword [eax + eax]
cmp dword [esp + 0x2c], edx
je 0x10060ad9
lea esi, [ebx + edx]
cmp esi, dword [esp]
jae 0x10060d27
mov eax, dword [esp + 0xc]
movzx eax, byte [eax + edx]
cmp al, byte [ecx + edx]
lea edx, [edx + 1]
je 0x10060a10
mov esi, dword [esp + 0x10]
sub esi, dword [esp + 0x34]
mov ebx, esi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x10], esi
sub ebx, dword [esp + 4]
cmp ebx, dword [esp]
jb 0x1006091a
jmp 0x10060859
mov eax, ebx
xor ebx, ebx
test al, al
jne 0x10060ad9
jmp 0x10060859
mov esi, dword [esp + 8]
jne 0x10060cb6
movzx eax, byte [esi + ecx - 1]
test al, al
jns 0x10060acf
mov byte [esp + 4], bl
movzx ebx, byte [esi + ecx - 2]
cmp bl, 0xbf
jg 0x10060aac
movzx edx, byte [esi + ecx - 3]
cmp dl, 0xbf
mov dword [esp + 0xc], edx
jg 0x10060ab1
movzx esi, byte [esi + ecx - 4]
mov edi, dword [esp + 0xc]
and esi, 7
and edi, 0x3f
shl esi, 6
or edi, esi
jmp 0x10060ab8
and ebx, 0x1f
jmp 0x10060ac2
mov edi, dword [esp + 0xc]
and edi, 0xf
mov esi, edi
and ebx, 0x3f
shl esi, 6
or ebx, esi
shl ebx, 6
and eax, 0x3f
or eax, ebx
movzx ebx, byte [esp + 4]
test bl, bl
je 0x10060c71
mov ebx, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [esp + 0x90]
push eax
call fcn.101769e0
add esp, 0xc
mov edi, dword [esp + 0x88]
mov eax, dword [esp + 0x8c]
mov esi, dword [esp + 0x90]
test edi, edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], eax
cmove edi, eax
test esi, esi
je 0x10060b65
setns al
js 0x10060ed4
mov byte [esp], al
mov eax, dword [0x1044f00c]
movzx eax, byte [eax]
mov eax, dword [0x1044eff8]
mov eax, dword [eax]
test eax, eax
jne 0x10060b45
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x10060b52
mov ecx, dword [0x1044eff8]
mov dword [ecx], eax
push esi
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
jne 0x10060b6a
movzx eax, byte [esp]
push esi
push eax
call fcn.1001ac80
add esp, 8
jmp 0x10060ee0
mov eax, 1
push esi
push edi
push eax
mov dword [esp + 0xc], esi
mov esi, eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov edx, dword [esp]
mov ecx, dword [esp + 0xc]
test ebx, ebx
mov dword [esp + 0x7c], esi
mov dword [esp + 4], esi
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], edx
je 0x10060bc6
cmp ebx, edx
jae 0x10060bc4
mov eax, dword [esp + 4]
cmp byte [eax + ebx], 0xbf
jg 0x10060bc6
push 0x102d00e8
push ebx
push 0
push edx
push dword [esp + 0x14]
call fcn.1002bc40
add esp, 0x14
jmp 0x10060ee0
jne 0x10060baa
test ecx, ecx
je 0x10060be0
cmp dword [esp + 0x14], 0
je 0x10060be0
mov eax, dword [0x1044eff8]
push ecx
push 0
push dword [eax]
call sub.KERNEL32.dll_HeapFree
test ebx, ebx
je 0x10060c33
setns al
js 0x10060edb
mov byte [esp + 0xc], al
mov eax, dword [0x1044f00c]
mov edi, dword [0x1044eff8]
movzx eax, byte [eax]
mov eax, dword [edi]
test eax, eax
jne 0x10060c10
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x10060c1f
mov dword [edi], eax
push ebx
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
mov edi, eax
test eax, eax
jne 0x10060c38
movzx eax, byte [esp + 0xc]
push ebx
push eax
call fcn.1001ac80
add esp, 8
jmp 0x10060ee0
mov edi, 1
push ebx
mov esi, dword [esp + 8]
push esi
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp dword [esp], 0
mov eax, dword [esp + 0x40]
mov dword [eax], edi
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
je 0x10060863
mov eax, dword [0x1044eff8]
push esi
push 0
push dword [eax]
call sub.KERNEL32.dll_HeapFree
jmp 0x10060863
cmp eax, 0x110000
je 0x10060859
mov ebx, 0xffffffff
cmp eax, 0x80
jb 0x10060ca1
mov ebx, 0xfffffffe
cmp eax, 0x800
jb 0x10060ca1
xor ebx, ebx
cmp eax, 0x10000
setb bl
or ebx, 0xfffffffc
mov edx, dword [esp + 8]
add ebx, ecx
je 0x10060cd3
cmp ebx, dword [esp]
jae 0x10060cda
cmp byte [edx + ebx], 0xc0
jge 0x10060cdc
mov ecx, ebx
push 0x102cd408
push ecx
push 0
push dword [esp + 0xc]
push dword [esp + 0x18]
call fcn.1002bc40
add esp, 0x14
jmp 0x10060ee0
xor ebx, ebx
jmp 0x10060ad9
jne 0x10060cb4
cmp byte [edx + ebx - 1], 0
jns 0x10060ad9
cmp byte [edx + ebx - 2], 0xbf
jmp 0x10060ad9
mov edx, dword [esp + 4]
mov esi, 0x102ccf90
jmp 0x10060ec7
mov esi, 0x102ccfa0
mov ecx, edx
jmp 0x10060d0d
mov esi, 0x102ccfa0
mov edx, dword [esp]
jmp 0x10060ec7
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 4]
mov esi, 0x102ccf70
jmp 0x10060ec7
mov edx, dword [esp]
jmp 0x10060eb9
cmp dword [esp + 0x18], 0
je 0x10060dca
mov eax, dword [esp + 8]
xor edx, edx
mov esi, 1
xor edi, edi
movzx ecx, byte [eax + ebx]
mov eax, 1
shld edx, eax, cl
shl esi, cl
test cl, 0x20
cmovne edx, esi
cmovne esi, edi
and edx, dword [esp + 0x1c]
and esi, dword [esp + 0x20]
or esi, edx
mov esi, 0x102ccf90
jne 0x10060dbd
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0x10]
add eax, eax
sub ebx, eax
cmp ebx, dword [esp]
jae 0x10060859
mov eax, dword [esp + 8]
mov ecx, ebx
xor edx, edx
mov edi, 1
movzx ecx, byte [eax + ecx]
mov eax, 1
shld edx, eax, cl
shl edi, cl
test cl, 0x20
mov eax, 0
cmovne edx, edi
cmovne edi, eax
sub ebx, dword [esp + 4]
and edx, dword [esp + 0x1c]
and edi, dword [esp + 0x20]
or edi, edx
je 0x10060d7b
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 4]
jmp 0x10060ec7
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, ebx
mov edi, eax
sub edx, eax
neg edi
mov eax, edx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 8]
mov ebx, ecx
xor edx, edx
movzx ecx, byte [eax + ecx]
mov eax, 1
shld edx, eax, cl
shl eax, cl
test cl, 0x20
mov ecx, 0
cmovne edx, eax
cmovne eax, ecx
and edx, dword [esp + 0x1c]
and eax, dword [esp + 0x20]
or eax, edx
jne 0x10060e5c
mov esi, ebx
mov ebx, dword [esp + 0x14]
lea eax, [edi + esi]
cmp eax, dword [esp]
jae 0x10060859
movzx ecx, byte [ebx + esi]
xor edx, edx
mov eax, 1
sub esi, dword [esp + 4]
shld edx, eax, cl
shl eax, cl
test cl, 0x20
mov ecx, 0
cmovne edx, eax
cmovne eax, ecx
and edx, dword [esp + 0x1c]
and eax, dword [esp + 0x20]
or eax, edx
je 0x10060e16
mov eax, dword [esp + 4]
mov ebx, esi
add eax, esi
mov dword [esp + 0x10], eax
mov edx, dword [esp]
mov eax, dword [esp + 8]
xor ecx, ecx
mov esi, ebx
sub edx, ebx
lea esi, [eax + ebx]
cmovb edx, ecx
cmp dword [esp + 0x2c], ecx
je 0x10060ad9
cmp edx, ecx
je 0x10060eb2
mov eax, dword [esp + 0xc]
movzx eax, byte [eax + ecx]
cmp al, byte [esi + ecx]
lea ecx, [ecx + 1]
je 0x10060e6f
mov ecx, dword [esp + 0x10]
sub ecx, dword [esp + 0x34]
mov dword [esp + 0x10], ecx
sub ecx, dword [esp + 4]
cmp ecx, dword [esp]
jb 0x10060de0
jmp 0x10060859
call fcn.1001ac40
jmp 0x10060ee0
mov edx, dword [esp]
mov edi, dword [esp + 0x18]
add ebx, edi
mov esi, 0x102ccf80
cmp edx, ebx
cmova ebx, edx
mov ecx, ebx
push esi
push edx
push ecx
call fcn.100273d0
add esp, 0xc
jmp 0x10060ee0
call fcn.1001ac40
jmp 0x10060ee0
call fcn.1001ac40
ud2