Function at 0x41a9b1
Capabilities:
Read file via mapping

Disassembly:
mov eax, 0x4e8976
call fcn.004b48a0
sub esp, 0x1a8
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x41a9d4
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
jmp 0x41a9db
mov dword [ebp - 0x20], 0x4efd50
push 0x105
lea ecx, [ebp - 0x14]
call fcn.004494b0
mov esi, dword [ebp + 0x10]
cmp esi, ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ecx
je 0x41a9fc
cmp dword [esi], ebx
jne 0x41aa0f
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 0x41aa32
mov eax, dword [esi]
cmp eax, ebx
jne 0x41aa23
push ecx
mov ecx, esi
call fcn.004566f0
jmp 0x41aa32
push eax
lea ecx, [ebp - 0x14]
call fcn.004566f0
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 0x41aa63
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 0x41aa81
xor eax, eax
cmp eax, ebx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jne 0x41aa91
mov ebx, esi
jmp 0x41ab60
push ebx
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
jne 0x41aaab
xor ebx, ebx
inc ebx
jmp 0x41ab60
push edi
push dword [ebp + 8]
lea eax, [esi + 4]
push eax
mov dword [esi], edi
call fcn.004b4dd0
push 0x10
lea eax, [esi + edi + 4]
push ebx
push eax
call fcn.004b4840
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.004565c0
mov esi, dword [ebp + 0x18]
cmp word [esi], bx
mov byte [ebp - 4], 2
je 0x41ab2a
push str.logs:_
lea ecx, [ebp - 0x10]
call fcn.00449510
push esi
lea ecx, [ebp - 0x10]
call fcn.00449510
push 0x4f2480
lea ecx, [ebp - 0x10]
call fcn.00449510
lea eax, [ebp - 0x1b4]
push eax
lea ecx, [ebp - 0x10]
call fcn.00449510
push dword [ebp - 0x20]
lea ecx, [ebp - 0x10]
call fcn.00449510
cmp dword [ebp + 0x14], ebx
je 0x41ab7b
push dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
call fcn.004566f0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00443880
lea ecx, [ebp - 0x1c]
call fcn.004165a1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00443880
mov eax, ebx
jmp 0x41ac32
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, 0x51d5ec
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.00416b67
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.004b0c70
add esp, 0x2c
cmp eax, ebx
je 0x41abf7
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 0x41ac09
push dword [ebp - 0x28]
call fcn.00416b78
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00443880
lea ecx, [ebp - 0x1c]
call fcn.004165a1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00443880
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret