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

Disassembly:
mov al, byte [0x10007160]
sub esp, 0x19c
test al, al
push ebx
push ebp
push esi
push edi
je 0x100018f5
mov edi, 0x10007160
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x1b0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x19c
ret
xor ebp, ebp
mov dword [esp + 0x24], 0x400
mov dword [esp + 0x28], 0x170
mov dword [esp + 0x2c], 0x4e
mov dword [esp + 0x30], 0x60d1
mov dword [esp + 0x34], 0x26d9
mov dword [esp + 0x38], 0x15d01
mov dword [esp + 0x3c], 0x1f07
mov dword [esp + 0x40], 0x120c4
mov dword [esp + 0x44], 0x16aa2
mov dword [esp + 0x48], 0xe18e3
mov dword [esp + 0x4c], 0x39fb4
mov dword [esp + 0x50], 0xc1740
mov dword [esp + 0x54], 0x13583
mov dword [esp + 0x58], 0xea
mov dword [esp + 0x5c], 0x25fd
mov dword [esp + 0x60], 0xb12
mov dword [esp + 0x64], 0x37f
mov dword [esp + 0x68], 0x3ff
mov dword [esp + 0x6c], 0x24
mov dword [esp + 0x70], 7
mov dword [esp + 0x74], 0x9ae
mov dword [esp + 0x78], 0x3e2
mov dword [esp + 0x7c], 0x22e6
mov dword [esp + 0x80], 0x31a
mov dword [esp + 0x84], 0x1ce0
mov dword [esp + 0x88], 0x2443
mov dword [esp + 0x8c], 0x168e3
mov dword [esp + 0x90], 0x5cc5
mov dword [esp + 0x94], 0x13586
mov dword [esp + 0x98], 0x1ef3
mov dword [esp + 0x9c], 0x17
mov dword [esp + 0xa0], 0x3cc
mov dword [esp + 0xa4], 0x11b
mov dword [esp + 0xa8], 0x59
mov dword [esp + 0x1c], ebp
mov bl, 0x25
jmp 0x10001a34
mov ebp, dword [esp + 0x1c]
mov edi, 0x7a
mov dword [esp + 0x20], 0
sub edi, ebp
add ebp, 0x61
lea esi, [esp + 0x24]
mov ecx, dword [esi]
lea edx, [esp + 0x10]
push ecx
push edi
push ebp
lea eax, [esp + 0xb8]
push edx
push eax
mov byte [esp + 0x24], 0x5c
mov byte [esp + 0x25], 0x5c
mov byte [esp + 0x26], 0x2e
mov byte [esp + 0x27], 0x5c
mov byte [esp + 0x28], bl
mov byte [esp + 0x29], 0x63
mov byte [esp + 0x2a], bl
mov byte [esp + 0x2b], 0x63
mov byte [esp + 0x2c], bl
mov byte [esp + 0x2d], 0x64
mov byte [esp + 0x2e], 0
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
lea ecx, [esp + 0xac]
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x10001afa
mov eax, dword [esp + 0x20]
add esi, 4
inc eax
cmp eax, 0x22
mov dword [esp + 0x20], eax
jb 0x10001a4a
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 0x19
mov dword [esp + 0x1c], eax
jb 0x10001a30
mov ecx, dword [esp + 0x1b0]
pop edi
pop esi
pop ebp
mov byte [ecx], 0
pop ebx
add esp, 0x19c
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [esp + 0xac]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x10007160
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x10007160
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x1b0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x19c
ret