Function at 0x4940c0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], 0x1160913
mov dword [ebp - 4], eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x1c], 0
call fcn.004d368c
mov dword [ebp - 0x18], eax
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x48]
mov word [edx], 0x7b
lea ecx, [ebp - 0x48]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x494118
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x494103
dec eax
push 0x1160913
add eax, ecx
push str._08X
push eax
call fcn.004d2c54
add esp, 0xc
lea edi, [ebp - 0x48]
mov edx, str._0000_0000_
mov ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
dec edi
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
test al, al
jne 0x49413f
lea ecx, [ebp - 0x48]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x494163
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x49414e
dec eax
add eax, ecx
movzx ecx, byte [ebp - 0x18]
push ecx
push str._02X
push eax
call fcn.004d2c54
add esp, 0xc
lea ecx, [ebp - 0x48]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x494192
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x49417d
dec eax
add eax, ecx
movzx ecx, byte [ebp - 0x17]
push ecx
push str._02X
push eax
call fcn.004d2c54
add esp, 0xc
lea edi, [ebp - 0x48]
mov edx, 0x4fb120
mov ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
dec edi
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
test al, al
jne 0x4941b9
lea ecx, [ebp - 0x48]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x4941dd
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x4941c8
dec eax
add eax, ecx
movzx ecx, byte [ebp - 0x16]
push ecx
push str._02X
push eax
call fcn.004d2c54
add esp, 0xc
lea ecx, [ebp - 0x48]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x49420c
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x4941f7
dec eax
add eax, ecx
movzx ecx, byte [ebp - 0x15]
push ecx
push str._02X
push eax
call fcn.004d2c54
add esp, 0xc
lea ecx, [ebp - 0x48]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x49423b
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x494226
dec eax
add eax, ecx
movzx ecx, byte [ebp - 0x14]
push ecx
push str._02X
push eax
call fcn.004d2c54
add esp, 0xc
lea ecx, [ebp - 0x48]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x49426a
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x494255
dec eax
add eax, ecx
movzx ecx, byte [ebp - 0x13]
push ecx
push str._02X
push eax
call fcn.004d2c54
add esp, 0xc
lea ecx, [ebp - 0x48]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x494299
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x494284
dec eax
add eax, ecx
movzx ecx, byte [ebp - 0x12]
push ecx
push str._02X
push eax
call fcn.004d2c54
add esp, 0xc
lea ecx, [ebp - 0x48]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x4942c8
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x4942b3
dec eax
add eax, ecx
movzx ecx, byte [ebp - 0x11]
push ecx
push str._02X
push eax
call fcn.004d2c54
add esp, 0xc
lea edi, [ebp - 0x48]
mov edx, 0x4fb124
mov ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
dec edi
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
test al, al
jne 0x4942ef
lea eax, [ebp - 0x48]
push eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
test eax, eax
je 0x494328
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
call fcn.004d0ee7
pop ecx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x48]
push eax
push ebx
xor edx, edx
push edx
push 4
push edx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
test esi, esi
je 0x494312
mov dword [ebp - 0x1c], esi
push ebx
xor eax, eax
push eax
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x494372
mov edx, dword [ebp - 0x20]
mov dword [eax], edx
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 4], ecx
mov ebx, dword [ebp - 0x18]
mov dword [eax + 8], ebx
mov esi, dword [ebp - 0x14]
mov dword [eax + 0xc], esi
add eax, 0x10
jmp 0x49431b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x494312