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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
and dword [esp + 8], 0
and dword [esp + 4], 0
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
test esi, esi
jne 0x10078431
or ebx, 0xffffffff
jmp 0x10078687
cmp dword [esi + 0x14], 1
je 0x10078667
test byte [esi + 0x50], 0xf
je 0x10078493
push ecx
push ecx
lea ecx, [esi + 0xc8]
call fcn.10074059
pop ecx
pop ecx
cmp eax, 1
je 0x10078461
test eax, eax
je 0x10078461
push 0xfffffffffffffff4
pop ebx
jmp 0x10078667
mov eax, dword [esi + 0xc0]
lea edi, [esi + 0x68]
mov ecx, dword [esi + 0xc4]
mov dword [edi], eax
mov eax, dword [esi + 0xb8]
push 8
mov dword [esi + 0x78], eax
mov dword [edi + 4], ecx
mov ecx, dword [esi + 0xbc]
pop eax
mov dword [esi + 0x7c], ecx
mov word [esi + 0xa8], ax
jmp 0x10078496
lea edi, [esi + 0x68]
mov ecx, dword [esi + 0x5c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1007849c
push dword [esi + 0x4e014]
sub ecx, edx
lea edx, [esp + 0x14]
push dword [esi + 0x4e010]
movzx eax, cx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], eax
call fcn.1007575c
mov ecx, dword [esi + 0x70]
mov edx, dword [edi + 4]
push 8
pop eax
mov byte [esp + 0x27], al
mov eax, ecx
shr eax, 8
mov byte [esp + 0x29], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x2a], al
mov byte [esp + 0x28], cl
shr ecx, 0x18
mov byte [esp + 0x2b], cl
mov ecx, dword [edi]
mov eax, ecx
shr eax, 8
mov byte [esp + 0x2d], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x32], al
mov byte [esp + 0x2c], cl
shr ecx, 0x18
mov byte [esp + 0x2f], cl
mov ecx, dword [esi + 0x60]
mov eax, ecx
shr eax, 8
mov byte [esp + 0x35], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x30], dl
shr edx, 0x18
mov byte [esp + 0x36], al
mov byte [esp + 0x33], dl
mov edx, dword [esi + 0x64]
mov eax, edx
shr eax, 8
mov byte [esp + 0x39], al
mov eax, edx
shr eax, 0x10
push 0x18
mov byte [esp + 0x3e], al
lea eax, [esp + 0x28]
push eax
push dword [esi + 0x7c]
mov byte [esp + 0x40], cl
push dword [esi + 0x78]
mov byte [esp + 0x48], dl
push dword [esi + 0x44]
shr ecx, 0x18
shr edx, 0x18
mov word [esp + 0x38], 0x4b50
mov byte [esp + 0x3a], 7
mov byte [esp + 0x4b], cl
mov byte [esp + 0x4f], dl
call dword [esi + 0x3c]
add esp, 0x1c
cmp eax, 0x18
je 0x10078599
push 0xfffffffffffffff2
jmp 0x1007845b
add dword [esi + 0x78], 0x18
lea eax, [esi + 0xa0]
push 0
pop ecx
adc dword [esi + 0x7c], ecx
cmp dword [eax + 4], ecx
ja 0x100785b5
cmp dword [eax], 0xffffffff
jae 0x100785b5
mov eax, ecx
cmp dword [edi + 4], ecx
ja 0x100785c1
cmp dword [edi], 0xffffffff
jae 0x100785c1
mov edi, ecx
lea edx, [esi + 0x60]
cmp dword [edx + 4], ecx
ja 0x100785d0
cmp dword [edx], 0xffffffff
jae 0x100785d0
mov edx, ecx
push eax
push edi
lea ecx, [esp + 0x3c]
call fcn.10077466
mov edx, dword [esp + 0x20]
mov edi, eax
pop ecx
pop ecx
test dx, dx
je 0x10078604
mov eax, dword [esi + 0x5c]
movzx ecx, dx
cmp byte [eax + ecx - 1], 0x2f
jne 0x10078604
mov eax, dword [esi + 0x60]
or eax, dword [esi + 0x64]
jne 0x10078604
or dword [esi + 0x4e008], 0x10
push ecx
push ecx
push dword [esi + 0x4e008]
movzx eax, word [esi + 0xa8]
push dword [esi + 0xa4]
push dword [esi + 0xa0]
push dword [esp + 0x24]
push dword [esp + 0x2c]
push ecx
push eax
push dword [esi + 0x70]
lea eax, [esp + 0x5c]
push dword [esi + 0x6c]
push dword [esi + 0x68]
push dword [esi + 0x64]
push dword [esi + 0x60]
push ecx
push ecx
push edi
push eax
push edx
mov edx, dword [esi + 0x5c]
mov ecx, esi
call fcn.100776fb
add esp, 0x4c
test eax, eax
jne 0x10078659
push 0xfffffffffffffff1
jmp 0x1007845b
inc dword [esi + 0x10]
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0x7c]
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 0x10078687
push dword [esi + 0x5c]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov dword [esi + 0x5c], edi
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret