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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, ecx
mov ecx, eax
push esi
shr eax, 1
push edi
not ecx
and ecx, 1
and eax, 1
xor edi, edi
push 0x28
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 4]
pop ecx
xor esi, esi
cmp eax, ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 0x400
mov dword [ebp - 0xc], eax
jg 0x100664da
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x10066575
cmp byte [eax], 0
je 0x10066575
mov eax, dword [ebx + 8]
inc eax
mov dword [ebp - 0x24], eax
add eax, eax
push eax
call fcn.10060511
pop ecx
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x10066512
push 7
pop eax
jmp 0x10066773
mov esi, dword [ebp + 0xc]
push 9
xor edx, edx
mov edi, str.:memory:
pop ecx
repe cmpsb byte [esi], byte es:[edi]
mov byte [eax], dl
jne 0x1006652e
mov dword [ebp - 0x14], 1
jmp 0x10066542
push eax
push dword [ebp - 0x24]
push dword [ebp + 0xc]
push ebx
call dword [ebx + 0x24]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
add esp, 0x10
mov ecx, eax
call fcn.1006218b
cmp dword [ebp - 8], 0
mov esi, eax
jne 0x10066560
lea eax, [esi + 8]
cmp eax, dword [ebx + 8]
jle 0x10066573
mov dword [ebp - 8], 0xe
mov esi, dword [ebp - 8]
push dword [ebp - 4]
call fcn.10060749
pop ecx
mov eax, esi
jmp 0x10066773
xor edi, edi
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebx + 4]
add eax, esi
lea eax, [ecx + eax*2 + 0xea]
push eax
call fcn.100608e5
pop ecx
cmp eax, edi
jne 0x10066594
push 7
pop esi
jmp 0x10066563
mov edi, eax
add eax, 0xb0
mov dword [edi + 0xa8], eax
add eax, 0x30
mov dword [edi + 0x38], eax
add eax, dword [ebx + 4]
mov dword [edi + 0x40], eax
add eax, dword [ebp - 0xc]
mov dword [edi + 0x3c], eax
add eax, dword [ebp - 0xc]
cmp dword [ebp - 4], 0
mov dword [edi + 0x84], eax
je 0x1006660d
push esi
push dword [ebp - 4]
lea ecx, [eax + esi + 1]
push eax
mov dword [edi + 0x88], ecx
call fcn.100c1cb0
add esp, 0xc
push esi
push dword [ebp - 4]
push dword [edi + 0x88]
call fcn.100c1cb0
mov ecx, dword [str._journal]
mov eax, dword [edi + 0x88]
add esp, 0xc
push dword [ebp - 4]
mov dword [eax + esi], ecx
mov ecx, dword [0x1010ff2c]
mov dword [eax + esi + 4], ecx
call fcn.10060749
pop ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [edi], ebx
mov dword [edi + 0x78], edx
test eax, eax
je 0x1006667c
cmp byte [eax], 0
je 0x1006667c
cmp dword [ebp - 0x14], 0
jne 0x1006667c
mov eax, dword [edi + 0x38]
mov ecx, dword [edi + 0x84]
and dword [ebp + 0xc], 0
lea esi, [ebp + 0xc]
push esi
push edx
push eax
push ecx
push ebx
call dword [ebx + 0x18]
mov ebx, eax
mov eax, dword [ebp + 0xc]
and eax, 1
add esp, 0x14
mov dword [ebp - 0x18], eax
test ebx, ebx
jne 0x10066699
test eax, eax
jne 0x10066687
mov esi, edi
call fcn.10065aed
mov eax, dword [edi + 0x70]
cmp eax, 0x400
jbe 0x10066687
mov ecx, 0x2000
cmp eax, ecx
jbe 0x10066674
mov dword [ebp - 0x10], ecx
jmp 0x10066687
movzx eax, ax
mov dword [ebp - 0x10], eax
jmp 0x10066687
mov dword [ebp - 0x1c], 1
mov byte [edi + 0xe], 4
lea eax, [ebp - 0x10]
push eax
mov ebx, edi
call fcn.10065f57
mov ebx, eax
pop ecx
test ebx, ebx
je 0x100666af
mov esi, dword [edi + 0x38]
call fcn.1005fe52
push edi
call fcn.10060749
pop ecx
mov eax, ebx
jmp 0x10066773
mov esi, dword [edi + 0xa8]
push 0x30
push 0
push esi
call fcn.100c1480
movzx eax, word [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
xor edx, edx
add esp, 0xc
mov dword [esi + 0x14], eax
xor eax, eax
cmp ebx, eax
sete dl
push 0x50
pop ecx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x24], edi
mov dword [esi + 0x10], 0x64
mov dword [esi + 0x1c], edx
mov edx, ebx
neg edx
sbb edx, edx
not edx
and edx, 0x100663e6
mov dword [esi + 0x20], edx
mov dl, byte [ebp - 0x20]
mov byte [edi + 6], dl
cmp dword [ebp - 0x28], eax
je 0x1006670a
cmp dword [ebp - 0x18], eax
je 0x1006670a
inc eax
mov dl, byte [ebp - 0x18]
mov byte [edi + 7], al
mov al, byte [ebp - 0x1c]
mov byte [edi + 0x15], bl
mov dword [edi + 0x80], 0x3fffffff
mov byte [edi + 0xb], al
mov byte [edi + 4], al
mov byte [edi + 0x12], al
mov byte [edi + 0xd], bl
mov byte [edi + 0xc], dl
test al, al
jne 0x1006673a
xor eax, eax
cmp dword [ebp - 0x20], eax
jne 0x1006673d
xor eax, eax
inc eax
test al, al
mov byte [edi + 8], al
sete al
or dword [edi + 0xa0], 0xffffffff
or dword [edi + 0xa4], 0xffffffff
mov esi, edi
mov byte [edi + 9], al
mov byte [edi + 0xa], 2
mov dword [edi + 0x74], ecx
call fcn.10065aed
test ebx, ebx
je 0x1006676c
mov byte [edi + 5], 4
mov eax, dword [ebp + 8]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret