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

Disassembly:
sub esp, 0x7c
mov eax, dword [0x10206870]
xor eax, esp
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x80]
push ebp
push 0x101a4c40
mov dword [esp + 0x3c], eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
mov dword [esp + 8], ebp
test ebp, ebp
jne 0x1007b4b9
pop ebp
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.1003dc89
add esp, 0x7c
ret 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x101a4c50
push ebp
call esi
mov dword [esp + 0x34], eax
test eax, eax
je 0x1007b769
push 0x101a4c6c
push ebp
call esi
mov dword [esp + 0x2c], eax
test eax, eax
je 0x1007b769
push ebx
push 0x101a4c8c
push ebp
call esi
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x1007b768
push 0x101a4cb0
push ebp
call esi
test eax, eax
je 0x1007b768
push edi
push 0x12
push 0
push 0
push 0x10224d4c
call eax
mov edi, eax
mov dword [esp + 0x40], edi
cmp edi, 0xffffffff
je 0x1007b767
xor esi, esi
mov dword [esp + 0x18], esi
xor eax, eax
lea ecx, [esp + 0x48]
push ecx
push esi
push 0x10224d4c
push eax
push edi
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x5c], 0x1c
call dword [esp + 0x50]
test eax, eax
je 0x1007b78a
push 0
lea edx, [esp + 0x14]
push edx
push 0
push 0
lea eax, [esp + 0x58]
push eax
push edi
mov dword [esp + 0x28], 0
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1007b754
mov ecx, dword [esp + 0x10]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
test ebp, ebp
je 0x1007b750
push 0
lea edx, [esp + 0x14]
push edx
mov dword [ebp], 5
mov eax, dword [esp + 0x18]
push eax
push ebp
lea ecx, [esp + 0x58]
push ecx
push edi
call ebx
test eax, eax
je 0x1007b745
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea esi, [ebp + 4]
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1007b741
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor eax, eax
push eax
lea edx, [esp + 0x3c]
push edx
push 4
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x30]
push eax
push 4
lea ecx, [esp + 0x44]
push ecx
push 0x294040
push ebx
call edi
test eax, eax
je 0x1007b736
xor eax, eax
cmp dword [esp + 0x24], eax
je 0x1007b736
push eax
lea edx, [esp + 0x3c]
push edx
push 0x24
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x70]
push eax
push 0xc
lea ecx, [esp + 0x38]
push ecx
push 0x294044
push ebx
call edi
test eax, eax
je 0x1007b736
mov eax, dword [esp + 0x64]
test eax, eax
jns 0x1007b736
test eax, 0x60000000
jne 0x1007b736
push 0x3a0
mov dword [esp + 0x20], 1
call fcn.1003ddbb
add esp, 4
test eax, eax
je 0x1007b6d5
call fcn.100b6ad0
mov edi, eax
jmp 0x1007b6d7
xor edi, edi
push esi
lea edx, [edi + 0x1a0]
push 0x200
push edx
call fcn.1003dc98
push 0x4b0
call fcn.1003ddbb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1007b70a
mov eax, 0x101a4cd0
call fcn.101404e0
mov esi, eax
jmp 0x1007b70c
xor esi, esi
test dword [esi + 4], 0x80000000
je 0x1007b71b
mov dword [edi + 0x16c], esi
mov eax, dword [esp + 0x44]
push edi
mov edi, dword [eax + 0xc]
call fcn.10006560
call fcn.1013c470
mov ecx, dword [eax + 0x30]
push esi
call fcn.100014e0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x40]
mov ebx, dword [esp + 0x20]
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
inc esi
cmp esi, 0x64
mov dword [esp + 0x18], esi
jl 0x1007b532
push edi
call dword [esp + 0x38]
pop edi
pop ebx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x14]
pop esi
pop ebp
xor ecx, esp
call fcn.1003dc89
add esp, 0x7c
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
je 0x1007b762
jmp 0x1007b754