Function at 0x419310
Capabilities:
Read file via mapping

Disassembly:
mov eax, 0x4e46f8
call fcn.004afe60
sub esp, 0x1a8
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x419333
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
jmp 0x41933a
mov dword [ebp - 0x20], 0x4ebd38
push 0x105
lea ecx, [ebp - 0x14]
call fcn.00446280
mov esi, dword [ebp + 0x10]
cmp esi, ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ecx
je 0x41935b
cmp dword [esi], ebx
jne 0x41936e
push 0x104
push ecx
push ebx
mov dword [ebp - 0x18], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, dword [ebp - 0x14]
cmp esi, ebx
je 0x419391
mov eax, dword [esi]
cmp eax, ebx
jne 0x419382
push ecx
mov ecx, esi
call fcn.004575a0
jmp 0x419391
push eax
lea ecx, [ebp - 0x14]
call fcn.004575a0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor esi, esi
lea edi, [eax + eax + 2]
inc esi
lea eax, [edi + 0x14]
mov dword [ebp - 0x34], 0xc
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp + 0x14]
cmp ecx, ebx
mov byte [ebp - 4], 1
jne 0x4193c2
lea ecx, [ebp - 0x1c]
push ebx
push eax
push ebx
push 0x8000004
lea eax, [ebp - 0x34]
push eax
push 0xffffffffffffffff
mov dword [ebp + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, 0xffffffff
jne 0x4193e0
xor eax, eax
cmp eax, ebx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jne 0x4193f0
mov ebx, esi
jmp 0x4194bf
push ebx
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
jne 0x41940a
xor ebx, ebx
inc ebx
jmp 0x4194bf
push edi
push dword [ebp + 8]
lea eax, [esi + 4]
push eax
mov dword [esi], edi
call fcn.004b0040
push 0x10
lea eax, [esi + edi + 4]
push ebx
push eax
call fcn.004afe00
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp + 0x10]
push edi
push dword [eax]
lea eax, [ebp - 0x1b4]
push str._map:0x_p:_lu
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0xffffffffffffffff
push str.PECMD_LOAD
lea ecx, [ebp - 0x10]
call fcn.00457470
mov esi, dword [ebp + 0x18]
cmp word [esi], bx
mov byte [ebp - 4], 2
je 0x419489
push str.logs:_
lea ecx, [ebp - 0x10]
call fcn.004462e0
push esi
lea ecx, [ebp - 0x10]
call fcn.004462e0
push 0x4ee0f0
lea ecx, [ebp - 0x10]
call fcn.004462e0
lea eax, [ebp - 0x1b4]
push eax
lea ecx, [ebp - 0x10]
call fcn.004462e0
push dword [ebp - 0x20]
lea ecx, [ebp - 0x10]
call fcn.004462e0
cmp dword [ebp + 0x14], ebx
je 0x4194da
push dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
call fcn.004575a0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0043f290
lea ecx, [ebp - 0x1c]
call fcn.004151b3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0043f290
mov eax, ebx
jmp 0x419591
xor eax, eax
mov dword [ebp - 0x44], ebx
lea edi, [ebp - 0x40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x10
stosd dword es:[edi], eax
pop ecx
mov esi, 0x5194ec
xor eax, eax
mov dword [ebp - 0x88], 0x44
lea edi, [ebp - 0x84]
push esi
rep stosd dword es:[edi], eax
mov dword [ebp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x28], ebx
call fcn.00415774
mov byte [ebp - 0x24], al
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x88]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push dword [ebp - 0x10]
mov byte [ebp - 4], 4
push dword [ebp - 0x18]
call fcn.004abe80
add esp, 0x2c
cmp eax, ebx
je 0x419556
push dword [ebp - 0x44]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x40]
call edi
cmp byte [ebp - 0x24], bl
mov byte [ebp - 4], 3
je 0x419568
push dword [ebp - 0x28]
call fcn.00415785
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0043f290
lea ecx, [ebp - 0x1c]
call fcn.004151b3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0043f290
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret