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

Disassembly:
push 0xffffffffffffffff
push 0x1009d250
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov eax, dword [esp + 0x78]
push ebx
push ebp
push esi
push edi
mov edi, ecx
cmp eax, 1
mov dword [esp + 0x10], edi
jne 0x100649d6
cmp dword [esp + 0x94], 4
jne 0x100649d6
call fcn.10063e20
test al, al
jne 0x10064110
mov eax, 0x8007000e
jmp 0x100649db
mov eax, dword [esp + 0x84]
xor ebp, ebp
cmp eax, ebp
mov byte [esp + 0x88], 0
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
je 0x10064156
mov eax, dword [eax]
cmp eax, ebp
je 0x10064156
mov ecx, dword [eax]
mov eax, dword [eax + 4]
cmp eax, ebp
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], eax
ja 0x10064156
jb 0x1006414e
cmp ecx, 0x1000000
ja 0x10064156
mov byte [esp + 0x88], 1
mov dword [esp + 0x34], edi
mov esi, dword [esp + 0x8c]
mov eax, dword [esp + 0x80]
lea ecx, [edi + 0x10]
mov dword [esp + 0x78], ebp
mov edx, dword [esi]
mov ebx, dword [eax]
push edx
mov dword [esp + 0x28], ebx
call fcn.10006592
lea ecx, [edi + 0x10]
call fcn.100065a1
mov eax, dword [esi + 4]
lea ecx, [edi + 0x38]
push eax
call fcn.10006592
lea ecx, [edi + 0x38]
call fcn.100065a1
mov edx, dword [esi + 8]
lea ecx, [edi + 0x60]
push edx
call fcn.10006592
lea ecx, [edi + 0x60]
call fcn.100065a1
mov esi, dword [esi + 0xc]
lea ecx, [edi + 0xa0]
push esi
call fcn.10006592
lea esi, [edi + 0x88]
lea ecx, [esi + 0x18]
call fcn.100065a1
mov dword [esi + 8], ebp
add edi, 0xc8
mov ecx, 0x102
mov eax, 0x400
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], 0xffffffff
mov dword [esi], 1
mov byte [esi + 4], 0
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], ebp
mov eax, dword [ebx]
lea ecx, [esp + 0x14]
push ecx
push 0x1009f438
push ebx
mov byte [esp + 0x84], 1
call dword [eax]
xor ebx, ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov byte [esp + 0x80], bl
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov eax, 0x20000
xor edi, edi
sub eax, ebx
je 0x10064281
lea ebp, [esp + 0x28]
mov ecx, dword [esp + 0x24]
push ebp
push eax
mov eax, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [eax + 8]
add eax, edi
add eax, ebx
push eax
push ecx
call dword [edx + 0xc]
mov ebp, eax
test ebp, ebp
jne 0x100647a7
mov eax, dword [esp + 0x28]
test eax, eax
je 0x10064281
add edi, eax
mov eax, 0x20000
sub eax, edi
sub eax, ebx
jne 0x10064246
add edi, ebx
cmp edi, 5
mov dword [esp + 0x20], edi
jb 0x100647f0
add edi, 0xfffffffb
mov dword [esp + 0x8c], 0
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x8c]
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0x10]
mov eax, dword [edi + 0x14]
mov bl, byte [ecx + ebp]
lea ecx, [edi + 0x10]
mov byte [edx + eax], bl
mov byte [esp + 0x94], bl
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 8]
inc eax
cmp eax, edx
mov dword [ecx + 4], eax
jne 0x100642d9
call fcn.1000668f
mov cl, bl
and cl, 0xfe
cmp cl, 0xe8
je 0x10064304
cmp byte [esp + 0x80], 0xf
jne 0x100642f7
mov dl, bl
and dl, 0xf0
cmp dl, 0x80
je 0x10064304
inc ebp
mov dword [esp + 0x8c], ebp
jmp 0x10064725
mov eax, dword [edi + 8]
xor edx, edx
add eax, ebp
xor ebx, ebx
mov cl, byte [eax + 4]
mov dl, byte [eax + 3]
mov bl, byte [eax + 2]
mov dh, cl
shl edx, 8
or edx, ebx
xor ebx, ebx
mov bl, byte [eax + 1]
mov byte [esp + 0x84], cl
shl edx, 8
or edx, ebx
mov eax, edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
add eax, ebp
lea edx, [eax + edx + 5]
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x1c], edx
je 0x100644b7
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
xor ebx, ebx
add ebp, edx
mov edx, dword [esp + 0x3c]
adc ebx, edi
cmp edx, ebx
ja 0x10064426
jb 0x10064374
cmp dword [esp + 0x38], ebp
jae 0x10064426
mov ecx, dword [eax]
lea edx, [esp + 0x60]
push edx
mov edx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x58]
push edx
push eax
call dword [ecx + 0xc]
mov edi, eax
test edi, edi
jne 0x100643cf
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x64]
mov dword [esp + 0x40], eax
add eax, edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x54]
adc ecx, edi
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x50]
add ecx, 1
adc eax, 0
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x14]
jmp 0x10064409
cmp edi, 1
je 0x100643e0
cmp edi, 0x80004001
jne 0x10064912
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100643f4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov dword [esp + 0x14], eax
xor ecx, ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
or ecx, 0xffffffff
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
cmp dword [esp + 0x3c], ebx
jb 0x10064374
ja 0x1006441f
cmp dword [esp + 0x38], ebp
jb 0x10064374
mov cl, byte [esp + 0x84]
test eax, eax
jne 0x1006445c
mov al, byte [esp + 0x88]
test al, al
je 0x1006447b
mov ecx, dword [esp + 0x5c]
xor eax, eax
cmp eax, ecx
ja 0x10064455
jb 0x100644e5
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x1c]
cmp eax, edx
jb 0x100644e5
xor cl, cl
jmp 0x100644e7
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
sub eax, edi
sbb edx, dword [esp + 0x44]
mov dword [esp + 0x6c], edx
jne 0x1006447b
cmp eax, 0x1000000
jbe 0x10064488
test cl, cl
je 0x100644e5
cmp cl, 0xff
je 0x100644e5
xor cl, cl
jmp 0x100644e7
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x44]
cdq
add eax, ebp
adc edx, ebx
add eax, 5
adc edx, 0
cmp edx, ecx
jb 0x100644b3
ja 0x100644a5
cmp eax, edi
jb 0x100644b3
cmp edx, dword [esp + 0x3c]
ja 0x100644b3
jb 0x100644e5
cmp eax, dword [esp + 0x38]
jb 0x100644e5
xor cl, cl
jmp 0x100644e7
mov al, byte [esp + 0x88]
test al, al
je 0x100644d8
mov ecx, dword [esp + 0x5c]
xor eax, eax
cmp eax, ecx
ja 0x100644d4
jb 0x100644e5
cmp edx, dword [esp + 0x58]
jb 0x100644e5
xor cl, cl
jmp 0x100644e7
test cl, cl
je 0x100644e5
cmp cl, 0xff
je 0x100644e5
xor cl, cl
jmp 0x100644e7
mov cl, 1
mov bl, byte [esp + 0x94]
cmp bl, 0xe8
jne 0x10064501
mov eax, dword [esp + 0x80]
and eax, 0xff
jmp 0x1006450e
xor eax, eax
cmp bl, 0xe9
setne al
add eax, 0x100
test cl, cl
je 0x10064658
mov edx, dword [esi + 0x10]
mov edi, dword [esp + 0x10]
mov ecx, edx
mov ebp, dword [esi + 8]
shr ecx, 0xb
imul ecx, dword [edi + eax*4 + 0xc8]
add ebp, ecx
mov dword [esi + 8], ebp
mov ebp, dword [esi + 0xc]
adc ebp, 0
sub edx, ecx
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], edx
mov ecx, dword [edi + eax*4 + 0xc8]
mov edx, ecx
shr edx, 5
sub ecx, edx
mov dword [edi + eax*4 + 0xc8], ecx
mov eax, dword [esi + 0x10]
cmp eax, 0x1000000
jae 0x100645ec
mov edi, dword [esi + 8]
shl eax, 8
cmp edi, 0xff000000
mov dword [esi + 0x10], eax
jb 0x10064587
mov edx, dword [esi + 0xc]
mov ecx, 0x20
mov eax, edi
call fcn.10094860
test eax, eax
je 0x100645d3
mov bl, byte [esi + 4]
lea edi, [esi + 0x18]
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov ecx, 0x20
call fcn.10094860
mov ecx, dword [edi]
mov edx, dword [edi + 4]
add al, bl
mov byte [ecx + edx], al
mov edx, dword [edi + 4]
mov ecx, dword [edi + 8]
inc edx
mov eax, edx
mov dword [edi + 4], edx
cmp eax, ecx
jne 0x100645be
mov ecx, edi
call fcn.1000668f
mov eax, dword [esi]
or bl, 0xff
dec eax
mov dword [esi], eax
jne 0x1006458d
mov edi, dword [esi + 8]
mov eax, edi
shr eax, 0x18
mov byte [esi + 4], al
mov ecx, dword [esi]
mov bl, byte [esp + 0x94]
inc ecx
shl edi, 8
mov dword [esi + 8], edi
mov dword [esi], ecx
mov dword [esi + 0xc], 0
mov ecx, dword [esp + 0x8c]
add ecx, 5
cmp bl, 0xe8
mov dword [esp + 0x8c], ecx
jne 0x1006460b
mov ecx, dword [esp + 0x10]
lea edi, [ecx + 0x38]
jmp 0x10064612
mov edx, dword [esp + 0x10]
lea edi, [edx + 0x60]
mov ebp, dword [esp + 0x1c]
mov ebx, 0x18
mov edx, dword [edi]
mov eax, ebp
mov ecx, ebx
shr eax, cl
mov ecx, dword [edi + 4]
mov byte [ecx + edx], al
mov edx, dword [edi + 4]
mov ecx, dword [edi + 8]
inc edx
mov eax, edx
mov dword [edi + 4], edx
cmp eax, ecx
jne 0x10064640
mov ecx, edi
call fcn.1000668f
sub ebx, 8
jns 0x1006461b
mov al, byte [esp + 0x84]
mov byte [esp + 0x80], al
jmp 0x1006472c
mov ecx, dword [esi + 0x10]
mov edx, dword [esp + 0x10]
shr ecx, 0xb
imul ecx, dword [edx + eax*4 + 0xc8]
mov dword [esi + 0x10], ecx
mov ecx, dword [edx + eax*4 + 0xc8]
mov edi, 0x800
sub edi, ecx
shr edi, 5
add edi, ecx
mov dword [edx + eax*4 + 0xc8], edi
mov eax, dword [esi + 0x10]
cmp eax, 0x1000000
jae 0x1006471e
mov edi, dword [esi + 8]
shl eax, 8
cmp edi, 0xff000000
mov dword [esi + 0x10], eax
jb 0x100646b9
mov edx, dword [esi + 0xc]
mov ecx, 0x20
mov eax, edi
call fcn.10094860
test eax, eax
je 0x10064705
mov bl, byte [esi + 4]
lea edi, [esi + 0x18]
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov ecx, 0x20
call fcn.10094860
mov ecx, dword [edi]
mov edx, dword [edi + 4]
add al, bl
mov byte [ecx + edx], al
mov edx, dword [edi + 4]
mov ecx, dword [edi + 8]
inc edx
mov eax, edx
mov dword [edi + 4], edx
cmp eax, ecx
jne 0x100646f0
mov ecx, edi
call fcn.1000668f
mov eax, dword [esi]
or bl, 0xff
dec eax
mov dword [esi], eax
jne 0x100646bf
mov edi, dword [esi + 8]
mov eax, edi
shr eax, 0x18
mov byte [esi + 4], al
mov ecx, dword [esi]
mov bl, byte [esp + 0x94]
inc ecx
shl edi, 8
mov dword [esi + 8], edi
mov dword [esi], ecx
mov dword [esi + 0xc], 0
inc dword [esp + 0x8c]
mov byte [esp + 0x80], bl
mov ebp, dword [esp + 0x8c]
mov eax, dword [esp + 0x30]
cmp ebp, eax
jbe 0x100642a2
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x98]
add ebx, ebp
add edi, ebp
mov dword [esp + 0x18], ebx
mov ebx, 0
adc edx, ebx
cmp eax, ebx
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edx
je 0x10064783
mov ecx, dword [eax]
lea edx, [esp + 0x48]
push ebx
push edx
push eax
call dword [ecx + 0xc]
mov edi, eax
cmp edi, ebx
jne 0x1006496d
mov edi, dword [esp + 0x20]
cmp ebp, edi
jae 0x100647a0
mov eax, dword [esp + 0x10]
inc ebx
inc ebp
mov eax, dword [eax + 8]
cmp ebp, edi
mov cl, byte [eax + ebp - 1]
mov byte [eax + ebx - 1], cl
jb 0x1006478b
xor ebp, ebp
jmp 0x1006423b
mov eax, dword [esp + 0x14]
mov byte [esp + 0x78], 0
test eax, eax
je 0x100647ba
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x78], 0xffffffff
lea ecx, [esi + 0x24]
call fcn.1004b211
lea ecx, [esi + 0x4c]
call fcn.1004b211
lea ecx, [esi + 0x74]
call fcn.1004b211
lea ecx, [esi + 0xb4]
call fcn.1004b211
mov eax, ebp
jmp 0x100649db
xor ebp, ebp
test edi, edi
jbe 0x100648b1
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 8]
mov edx, dword [edi + 0x14]
lea ecx, [edi + 0x10]
mov bl, byte [eax + ebp]
mov eax, dword [ecx]
mov byte [edx + eax], bl
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 8]
inc eax
cmp eax, edx
mov dword [ecx + 4], eax
jne 0x10064822
call fcn.1000668f
cmp bl, 0xe8
jne 0x10064836
mov ecx, dword [esp + 0x80]
and ecx, 0xff
jmp 0x1006485b
cmp bl, 0xe9
jne 0x10064842
mov ecx, pe_nt_image_headers32
jmp 0x1006485b
cmp byte [esp + 0x80], 0xf
jne 0x1006489d
mov cl, bl
and cl, 0xf0
cmp cl, 0x80
jne 0x1006489d
mov ecx, 0x101
mov eax, dword [esi + 0x10]
mov edx, 0x800
shr eax, 0xb
imul eax, dword [edi + ecx*4 + 0xc8]
mov dword [esi + 0x10], eax
mov eax, dword [edi + ecx*4 + 0xc8]
sub edx, eax
shr edx, 5
add edx, eax
mov dword [edi + ecx*4 + 0xc8], edx
mov eax, dword [esi + 0x10]
cmp eax, 0x1000000
jae 0x1006489d
shl eax, 8
mov ecx, esi
mov dword [esi + 0x10], eax
call fcn.100649f0
mov eax, dword [esp + 0x20]
inc ebp
cmp ebp, eax
mov byte [esp + 0x80], bl
jb 0x100647fa
mov esi, dword [esp + 0x10]
mov ecx, esi
call fcn.10063fc0
mov edi, eax
mov eax, dword [esp + 0x14]
test eax, eax
mov byte [esp + 0x78], 0
je 0x100648d1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esi + 0x24]
mov dword [esp + 0x78], 0xffffffff
call fcn.1004b211
lea ecx, [esi + 0x4c]
call fcn.1004b211
lea ecx, [esi + 0x74]
call fcn.1004b211
mov eax, dword [esi + 0xb4]
test eax, eax
je 0x1006490b
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esi + 0xb4], 0
mov eax, edi
jmp 0x100649db
mov eax, dword [esp + 0x14]
mov byte [esp + 0x78], 0
test eax, eax
je 0x10064925
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x78], 0xffffffff
lea ecx, [esi + 0x24]
call fcn.1004b211
lea ecx, [esi + 0x4c]
call fcn.1004b211
mov eax, dword [esi + 0x74]
xor ebx, ebx
cmp eax, ebx
je 0x10064953
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esi + 0x74], ebx
mov eax, dword [esi + 0xb4]
cmp eax, ebx
je 0x10064969
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 0xb4], ebx
mov eax, edi
jmp 0x100649db
mov eax, dword [esp + 0x14]
mov byte [esp + 0x78], 0
cmp eax, ebx
je 0x10064980
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x78], 0xffffffff
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x1006499c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 0x24], ebx
mov eax, dword [esi + 0x4c]
cmp eax, ebx
je 0x100649ac
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esi + 0x4c], ebx
mov eax, dword [esi + 0x74]
cmp eax, ebx
je 0x100649bc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 0x74], ebx
mov eax, dword [esi + 0xb4]
cmp eax, ebx
je 0x10064969
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esi + 0xb4], ebx
mov eax, edi
jmp 0x100649db
mov eax, 0x80070057
mov ecx, dword [esp + 0x70]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x6c
ret 0x1c