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

Disassembly:
push 0xffffffffffffffff
push 0x1012d9e8
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x1017a974]
xor eax, esp
mov dword [esp + 0x23c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1017a974]
xor eax, esp
push eax
lea eax, [esp + 0x254]
mov dword fs:[0], eax
mov eax, dword [esp + 0x268]
mov ecx, dword [esp + 0x264]
mov dword [esp + 0x14], eax
xor ebx, ebx
mov edi, 0xf
mov eax, ecx
mov dword [esp + 0xb8], edi
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xa4], bl
lea esi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10066640
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0xa8]
call fcn.100069f0
mov dword [esp + 0x25c], ebx
lea ecx, [esp + 0xa0]
push ecx
lea ecx, [esp + 0xc0]
call fcn.10055b10
mov byte [esp + 0x25c], 2
cmp dword [esp + 0xb8], 0x10
jb 0x10066694
mov edx, dword [esp + 0xa4]
push edx
call fcn.100d59a5
add esp, 4
lea ecx, [esp + 0xbc]
mov dword [esp + 0xb8], edi
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xa4], 0
call fcn.10055e00
test al, al
jne 0x100666d8
mov dword [esp + 0x25c], 0xffffffff
lea ecx, [esp + 0xbc]
call fcn.10055590
xor eax, eax
jmp 0x10066e41
lea ecx, [esp + 0x80]
call fcn.10055640
mov byte [esp + 0x25c], 3
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0xc0]
call fcn.10055ca0
lea ecx, [esp + 0x2c]
call fcn.10055640
mov byte [esp + 0x25c], 4
mov ecx, dword [esp + 0x90]
sub ecx, dword [esp + 0x8c]
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
xor esi, esi
add eax, edx
je 0x10066881
xor ebp, ebp
cmp esi, eax
jb 0x10066743
call fcn.100d63f7
mov ecx, dword [esp + 0x8c]
add ecx, ebp
mov eax, ecx
mov dword [esp + 0xb8], 0xf
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xa4], 0
lea edi, [eax + 1]
jmp 0x10066770
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10066770
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0xa8]
call fcn.100069f0
mov byte [esp + 0x25c], 5
mov edi, dword [esp + 0xb4]
mov eax, edi
cmp edi, 5
jb 0x100667a2
mov eax, 5
cmp dword [esp + 0xb8], 0x10
mov ecx, dword [esp + 0xa4]
jae 0x100667ba
lea ecx, [esp + 0xa4]
push eax
push 0x1013db70
push ecx
call fcn.1000d640
add esp, 0xc
cmp eax, ebx
jne 0x1006681a
cmp edi, 5
jb 0x1006681a
xor eax, eax
cmp edi, 5
setne al
cmp eax, ebx
jne 0x1006681a
mov ecx, dword [esp + 0x90]
sub ecx, dword [esp + 0x8c]
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x10066806
call fcn.100d63f7
mov ecx, dword [esp + 0x8c]
lea edx, [ecx + ebp]
push edx
lea ecx, [esp + 0x30]
call fcn.100662d0
mov byte [esp + 0x25c], 4
cmp dword [esp + 0xb8], 0x10
jb 0x1006683c
mov eax, dword [esp + 0xa4]
push eax
call fcn.100d59a5
add esp, 4
mov ecx, dword [esp + 0x90]
sub ecx, dword [esp + 0x8c]
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
add ebp, 0x28
mov dword [esp + 0xb8], 0xf
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xa4], 0
cmp esi, eax
jb 0x10066743
push ecx
mov dword [esp + 0x28], esp
lea ecx, [esp + 0x68]
mov dword [esp + 0x28], esp
call fcn.10053bc0
mov byte [esp + 0x25c], 7
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov byte [esp + 0x25c], 8
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
mov dword [esp + 0x18], ebx
sar ecx, 2
test ecx, ecx
jbe 0x10066a04
mov esi, dword [esp + 0x38]
lea esp, [esp]
mov ecx, dword [esp + 0x3c]
sub ecx, esi
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
xor edi, edi
add eax, edx
je 0x100669e6
xor ebp, ebp
cmp edi, eax
jb 0x100668fe
call fcn.100d63f7
mov esi, dword [esp + 0x38]
mov edx, dword [esi + ebp + 0xc]
mov ecx, dword [esp + 0x3c]
sub ecx, esi
mov dword [esp + 0x1c], edx
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x1006692a
call fcn.100d63f7
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
mov ebx, dword [esi + ebp + 8]
add ebx, dword [esp + 0x1c]
sar ecx, 2
cmp dword [esp + 0x18], ecx
jb 0x10066952
call fcn.100d63f7
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x18]
mov eax, dword [edx + eax*4]
mov dword [esp + 0x5c], eax
cmp eax, dword [esp + 0x1c]
jb 0x1006696a
cmp eax, ebx
jbe 0x1006698f
mov ecx, dword [esp + 0x3c]
sub ecx, esi
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
add ebp, 0x28
cmp edi, eax
jb 0x100668fe
jmp 0x100669e6
mov esi, dword [esp + 0x70]
test esi, esi
jne 0x1006699b
xor edx, edx
jmp 0x100669a4
mov edx, dword [esp + 0x78]
sub edx, esi
sar edx, 2
mov ecx, dword [esp + 0x74]
mov edi, ecx
sub edi, esi
sar edi, 2
cmp edi, edx
jae 0x100669be
mov dword [ecx], eax
add ecx, 4
mov dword [esp + 0x74], ecx
jmp 0x100669e2
mov edi, ecx
cmp esi, ecx
jbe 0x100669c9
call fcn.100d63f7
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x5c]
push ecx
push edi
push eax
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x74]
call fcn.10055a60
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x10]
sub edx, dword [ecx + 0xc]
mov eax, dword [esp + 0x18]
inc eax
sar edx, 2
mov dword [esp + 0x18], eax
cmp eax, edx
jb 0x100668d0
push 4
xor esi, esi
call fcn.100d59cb
add esp, 4
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov byte [esp + 0x25c], 0xa
cmp eax, esi
je 0x10066a2c
lea ecx, [esp + 0x44]
mov dword [eax], ecx
jmp 0x10066a2e
xor eax, eax
mov byte [esp + 0x25c], 8
mov dword [esp + 0x44], eax
mov byte [esp + 0x25c], 0xc
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov byte [esp + 0x25c], 0xd
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x38]
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], esi
je 0x10066c88
mov ebp, esi
mov dword [esp + 0x1c], esi
mov ebx, esi
cmp ebp, eax
jb 0x10066a8a
call fcn.100d63f7
mov edx, dword [esp + 0x38]
mov eax, dword [edx + ebx + 0xc]
push eax
lea ecx, [esp + 0xc0]
mov dword [esp + 0x60], eax
call fcn.10053100
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov edi, eax
mov edx, ecx
sub edx, esi
mov eax, 0x66666667
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x10066ad3
call fcn.100d63f7
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
sub ecx, esi
mov eax, 0x66666667
imul ecx
sar edx, 4
cmp dword [esi + ebx + 0x10], 0
je 0x10066b00
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebp, ecx
jb 0x10066afa
call fcn.100d63f7
mov esi, dword [esp + 0x38]
mov esi, dword [esi + ebx + 0x10]
jmp 0x10066b18
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x10066b14
call fcn.100d63f7
mov esi, dword [esp + 0x38]
mov esi, dword [esi + ebx + 8]
push 4
push 0x1000
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebp, eax
test ebp, ebp
je 0x10066c88
push edi
lea ecx, [esp + 0x80]
push ecx
push esi
push ebp
lea ecx, [esp + 0xcc]
mov dword [esp + 0x8c], 0
call fcn.10052740
test al, al
je 0x10066c7a
cmp dword [esp + 0x7c], esi
jne 0x10066c7a
mov eax, dword [esp + 0x74]
sub eax, dword [esp + 0x70]
mov edx, dword [esp + 0x5c]
add esi, edx
sar eax, 2
xor ebx, ebx
mov dword [esp + 0x20], esi
test eax, eax
jbe 0x10066c35
mov edi, dword [esp + 0x54]
cmp ebx, eax
jb 0x10066b96
call fcn.100d63f7
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x70]
mov esi, dword [eax + ebx*4]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x24], esi
cmp esi, ecx
jb 0x10066c21
cmp esi, dword [esp + 0x20]
ja 0x10066c21
mov eax, esi
sub eax, ecx
cmp eax, 4
jb 0x10066c21
mov eax, dword [eax + ebp - 4]
push eax
call fcn.10065a80
add esp, 4
test eax, eax
je 0x10066c21
mov ecx, dword [esp + 0x50]
test ecx, ecx
jne 0x10066bd5
xor eax, eax
jmp 0x10066bde
mov eax, dword [esp + 0x58]
sub eax, ecx
sar eax, 2
mov edx, edi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x10066bf6
mov eax, edi
mov dword [edi], esi
lea edi, [eax + 4]
mov dword [esp + 0x54], edi
jmp 0x10066c21
mov esi, edi
cmp ecx, edi
jbe 0x10066c01
call fcn.100d63f7
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x24]
push ecx
push esi
push eax
lea edx, [esp + 0xa4]
push edx
lea ecx, [esp + 0x54]
call fcn.10055a60
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x74]
sub eax, dword [esp + 0x70]
inc ebx
sar eax, 2
cmp ebx, eax
jb 0x10066b96
push 0x8000
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc ebp
add ebx, 0x28
add eax, edx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebx
cmp ebp, eax
jb 0x10066a8a
jmp 0x10066c88
push 0x8000
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x24], ecx
cmp eax, ecx
jbe 0x10066ca5
call fcn.100d63f7
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x20], eax
cmp eax, ecx
jbe 0x10066cba
call fcn.100d63f7
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 0x10]
mov ebp, dword [esp + 0x44]
cmp dword [eax + 0xc], esi
jbe 0x10066ccf
call fcn.100d63f7
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 0xc]
mov ebx, dword [eax]
cmp edi, dword [eax + 0x10]
jbe 0x10066ce2
call fcn.100d63f7
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
push esi
push ebx
push edi
push eax
lea eax, [esp + 0xa8]
push eax
call fcn.10054b40
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 0xc]
cmp esi, dword [eax + 0x10]
jbe 0x10066d0a
call fcn.100d63f7
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x2c]
push edx
push ebp
push esi
push eax
call fcn.10065ee0
mov byte [esp + 0x25c], 0xe
mov eax, dword [esp + 0x50]
xor esi, esi
cmp eax, esi
je 0x10066d47
push eax
call fcn.100d59a5
add esp, 4
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov byte [esp + 0x25c], 8
mov eax, dword [esp + 0x44]
push eax
call fcn.100d59a5
add esp, 4
mov byte [esp + 0x25c], 0x10
mov eax, dword [esp + 0x70]
cmp eax, esi
je 0x10066d81
push eax
call fcn.100d59a5
add esp, 4
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov byte [esp + 0x25c], 4
mov ecx, dword [esp + 0x64]
push ecx
call fcn.100d59a5
add esp, 4
mov byte [esp + 0x25c], 0x12
mov eax, dword [esp + 0x38]
cmp eax, esi
je 0x10066dbb
push eax
call fcn.100d59a5
add esp, 4
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov byte [esp + 0x25c], 3
mov edx, dword [esp + 0x2c]
push edx
call fcn.100d59a5
add esp, 4
mov byte [esp + 0x25c], 0x14
mov eax, dword [esp + 0x8c]
cmp eax, esi
je 0x10066df8
push eax
call fcn.100d59a5
add esp, 4
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], esi
mov byte [esp + 0x25c], 2
mov eax, dword [esp + 0x80]
push eax
call fcn.100d59a5
add esp, 4
mov dword [esp + 0x25c], 0xffffffff
lea ecx, [esp + 0xbc]
call fcn.10055590
mov eax, 1
mov ecx, dword [esp + 0x254]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x23c]
xor ecx, esp
call fcn.100d5eaf
add esp, 0x24c
ret