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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x100c901c]
xor eax, esp
mov dword [esp + 0x48], eax
and dword [esp + 4], 0
and dword [esp], 0
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x18], ebx
push edi
test esi, esi
jne 0x10079530
or ebx, 0xffffffff
jmp 0x1007978b
cmp dword [esi + 0x14], 1
je 0x1007976b
test byte [esi + 0x50], 0xf
push 8
pop ebx
je 0x10079592
push ecx
push ecx
lea ecx, [esi + 0xc8]
call fcn.10075803
pop ecx
pop ecx
cmp eax, 1
je 0x10079563
test eax, eax
je 0x10079563
push 0xfffffffffffffff4
pop ebx
jmp 0x1007976b
mov eax, dword [esi + 0xc0]
lea edi, [esi + 0x68]
mov ecx, dword [esi + 0xc4]
mov dword [edi], eax
mov eax, dword [esi + 0xb8]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 0xbc]
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], ecx
mov word [esi + 0xa8], bx
jmp 0x10079595
lea edi, [esi + 0x68]
mov ecx, dword [esi + 0x5c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1007959b
push dword [esi + 0x4e014]
sub ecx, edx
lea edx, [esp + 0x10]
push dword [esi + 0x4e010]
movzx eax, cx
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.10076eb4
mov ecx, dword [esi + 0x70]
mov eax, ecx
shr eax, 8
mov edx, dword [edi + 4]
mov byte [esp + 0x2d], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x2e], al
mov byte [esp + 0x2c], cl
shr ecx, 0x18
mov byte [esp + 0x2f], cl
mov ecx, dword [edi]
mov eax, ecx
shr eax, 8
mov byte [esp + 0x31], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x32], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x35], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x36], al
mov byte [esp + 0x30], cl
shr ecx, 0x18
mov byte [esp + 0x2b], bl
lea ebx, [esi + 0x60]
mov byte [esp + 0x33], cl
mov ecx, dword [ebx]
mov eax, ecx
shr eax, 8
mov byte [esp + 0x39], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x34], dl
shr edx, 0x18
mov byte [esp + 0x3a], al
mov byte [esp + 0x37], dl
mov edx, dword [ebx + 4]
mov eax, edx
shr eax, 8
mov byte [esp + 0x3d], al
mov eax, edx
shr eax, 0x10
push 0x18
mov byte [esp + 0x42], al
lea eax, [esp + 0x2c]
push eax
push dword [esi + 0x7c]
mov byte [esp + 0x44], cl
push dword [esi + 0x78]
mov byte [esp + 0x4c], dl
push dword [esi + 0x44]
shr ecx, 0x18
shr edx, 0x18
mov word [esp + 0x3c], 0x4b50
mov byte [esp + 0x3e], 7
mov byte [esp + 0x4f], cl
mov byte [esp + 0x53], dl
call dword [esi + 0x3c]
add esp, 0x1c
cmp eax, 0x18
je 0x10079697
push 0xfffffffffffffff2
jmp 0x1007955d
add dword [esi + 0x78], 0x18
lea eax, [esi + 0xa0]
push 0
pop edx
adc dword [esi + 0x7c], edx
cmp dword [eax + 4], edx
ja 0x100796b3
cmp dword [eax], 0xffffffff
mov ecx, edx
jb 0x100796b5
mov ecx, eax
cmp dword [edi + 4], edx
ja 0x100796c1
cmp dword [edi], 0xffffffff
mov eax, edx
jb 0x100796c3
mov eax, edi
cmp dword [ebx + 4], edx
ja 0x100796cd
cmp dword [ebx], 0xffffffff
jb 0x100796cf
mov edx, ebx
push ecx
push eax
lea ecx, [esp + 0x40]
call fcn.10078972
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
pop ecx
pop ecx
test dx, dx
je 0x10079704
mov eax, dword [esi + 0x5c]
movzx ecx, dx
cmp byte [ecx + eax - 1], 0x2f
jne 0x10079704
mov eax, dword [ebx]
or eax, dword [ebx + 4]
jne 0x10079704
or dword [esi + 0x4e008], 0x10
push ecx
push ecx
push dword [esi + 0x4e008]
lea eax, [esi + 0xa0]
push dword [eax + 4]
push dword [eax]
movzx eax, word [esi + 0xa8]
push dword [esp + 0x20]
push dword [esp + 0x28]
push ecx
push eax
push dword [esi + 0x70]
lea eax, [esp + 0x60]
push dword [edi + 4]
push dword [edi]
push dword [ebx + 4]
push dword [ebx]
push ecx
push ecx
push dword [esp + 0x58]
mov ecx, esi
push eax
push edx
mov edx, dword [esi + 0x5c]
call fcn.10078b8c
add esp, 0x4c
test eax, eax
jne 0x10079759
push 0xfffffffffffffff1
jmp 0x1007955d
inc dword [esi + 0x10]
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0x7c]
mov ebx, dword [esp + 0x1c]
mov dword [esi], eax
mov dword [esi + 4], ecx
xor edi, edi
mov dword [esi + 0x4e010], edi
mov dword [esi + 0x4e014], edi
cmp dword [esi + 0x5c], edi
je 0x1007978b
push dword [esi + 0x5c]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov dword [esi + 0x5c], edi
mov ecx, dword [esp + 0x54]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1007bb64
mov esp, ebp
pop ebp
ret