Function at 0x4070a2
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x4070be
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
jmp 0x4070c5
mov dword [ebp - 0x14], 0x4949a4
push 0x105
lea ecx, [ebp - 8]
call fcn.00435d80
mov esi, dword [ebp + 0x10]
cmp esi, ebx
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
je 0x4070e3
cmp dword [esi], ebx
jne 0x4070f6
push 0x104
push ecx
push ebx
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
mov ecx, dword [ebp - 8]
cmp esi, ebx
je 0x407119
mov eax, dword [esi]
cmp eax, ebx
jne 0x40710a
push ecx
mov ecx, esi
call fcn.00440487
jmp 0x407119
push eax
lea ecx, [ebp - 8]
call fcn.00440487
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov ecx, dword [ebp + 0x14]
xor edi, edi
inc edi
cmp ecx, ebx
lea esi, [eax + eax + 2]
lea eax, [esi + 0x14]
mov dword [ebp - 0x28], 0xc
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x10], ebx
jne 0x407146
lea ecx, [ebp - 0x10]
push ebx
push eax
push ebx
push 0x8000004
lea eax, [ebp - 0x28]
push eax
push 0xffffffffffffffff
mov dword [ebp + 0x10], ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
cmp eax, 0xffffffff
jne 0x407164
xor eax, eax
cmp eax, ebx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jne 0x407174
mov ebx, edi
jmp 0x40723b
push ebx
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov edi, eax
cmp edi, ebx
jne 0x40718e
xor ebx, ebx
inc ebx
jmp 0x40723b
push esi
push dword [ebp + 8]
lea eax, [edi + 4]
push eax
mov dword [edi], esi
call fcn.004102e0
push 0x10
lea eax, [edi + esi + 4]
push ebx
push eax
call fcn.0047fd70
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov eax, dword [ebp + 0x10]
push esi
push dword [eax]
lea eax, [ebp - 0x1a8]
push 0x4953d8
push eax
call dword [sym.imp.USER32.DLL_wsprintfW]
add esp, 0x10
push 0xffffffffffffffff
push 0x4953cc
lea ecx, [ebp - 4]
call fcn.004403f9
mov esi, dword [ebp + 0x18]
cmp word [esi], bx
je 0x407209
push 0x4953b8
lea ecx, [ebp - 4]
call fcn.00435dd0
push esi
lea ecx, [ebp - 4]
call fcn.00435dd0
push 0x4953b4
lea ecx, [ebp - 4]
call fcn.00435dd0
lea eax, [ebp - 0x1a8]
push eax
lea ecx, [ebp - 4]
call fcn.00435dd0
push dword [ebp - 0x14]
lea ecx, [ebp - 4]
call fcn.00435dd0
cmp dword [ebp + 0x14], ebx
je 0x407252
push dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
call fcn.00440487
lea ecx, [ebp - 4]
call fcn.0043092f
lea ecx, [ebp - 0x10]
call fcn.00402b27
lea ecx, [ebp - 8]
call fcn.0043092f
mov eax, ebx
jmp 0x4072e9
xor eax, eax
mov dword [ebp - 0x38], ebx
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x10
stosd dword es:[edi], eax
pop ecx
xor eax, eax
mov esi, 0x4ad684
mov dword [ebp - 0x7c], 0x44
lea edi, [ebp - 0x78]
push esi
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], ebx
call fcn.00403127
mov byte [ebp - 0x18], al
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push dword [ebp - 4]
push dword [ebp - 0xc]
call fcn.0047f78b
add esp, 0x2c
test eax, eax
je 0x4072ba
push dword [ebp - 0x38]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call edi
push dword [ebp - 0x34]
call edi
cmp byte [ebp - 0x18], bl
je 0x4072c8
push dword [ebp - 0x1c]
call fcn.00403138
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
lea ecx, [ebp - 4]
call fcn.0043092f
lea ecx, [ebp - 0x10]
call fcn.00402b27
lea ecx, [ebp - 8]
call fcn.0043092f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret