Function at 0x401c80
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41d28a
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x427324]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebx
push esi
mov eax, dword [0x427324]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x10], esi
mov eax, dword [edi + 8]
mov ebx, ecx
cmp eax, esi
je 0x401ccf
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [edi]
cmp eax, esi
je 0x401cdc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 4]
cmp eax, esi
je 0x401cea
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [edi + 0x10]
mov dword [edi + 0xc], esi
push esi
mov eax, 0x424c5c
mov esi, ecx
mov dword [esp + 0x18], ecx
call fcn.004015b0
mov eax, ebx
test ebx, ebx
jne 0x401d0c
mov eax, 0x424c5c
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x401d11
sub ecx, esi
mov esi, dword [esp + 0x14]
sar ecx, 1
push ecx
call fcn.004015b0
push ebx
xor esi, esi
push esi
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [edi], eax
cmp eax, esi
je 0x401d4f
push esi
push esi
push esi
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 8], eax
cmp eax, esi
jne 0x401d91
mov eax, dword [edi + 8]
cmp eax, esi
je 0x401d5d
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [edi]
cmp eax, esi
je 0x401d6a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 4]
cmp eax, esi
je 0x401d78
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0xc], esi
push esi
mov esi, dword [esp + 0x18]
mov eax, 0x424c5c
call fcn.004015b0
xor al, al
jmp 0x401ec4
push 0x1c
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jbe 0x401daa
mov edx, dword [esp + 0x24]
mov dword [edi + 0xc], edx
cmp dword [edi + 0x28], esi
je 0x401dcf
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.00401fe0
add esp, 8
mov dword [esp + 0x88], esi
mov ebx, 1
jmp 0x401de9
lea edx, [esp + 0x18]
push edx
call fcn.00401ef0
mov dword [esp + 0x88], 1
mov ebx, 2
push eax
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x18], ebx
call fcn.00401f70
mov dword [esp + 0x88], 3
test bl, 2
je 0x401e18
and ebx, 0xfffffffd
lea esi, [esp + 0x18]
mov dword [esp + 0x10], ebx
call fcn.00401570
mov byte [esp + 0x88], 4
test bl, 1
je 0x401e2e
lea esi, [esp + 0x38]
call fcn.00401570
xor esi, esi
mov ebx, 8
cmp dword [esp + 0x70], esi
je 0x401e4d
cmp dword [esp + 0x74], ebx
jb 0x401e47
mov eax, dword [esp + 0x60]
jmp 0x401e4f
lea eax, [esp + 0x60]
jmp 0x401e4f
xor eax, eax
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esp + 0x88], 0xffffffff
mov dword [edi + 4], eax
cmp dword [esp + 0x74], ebx
jb 0x401e79
mov ecx, dword [esp + 0x60]
push ecx
call fcn.00403420
add esp, 4
xor edx, edx
push 3
lea ecx, [esp + 0x14]
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], esi
mov word [esp + 0x64], dx
call fcn.00402300
mov eax, dword [esp + 0x58]
cmp eax, 0xfffffffd
je 0x401eb9
cmp eax, esi
je 0x401eb5
mov dword [eax], esi
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 4]
mov dword [esp + 0x58], eax
cmp eax, esi
jne 0x401ea4
mov dword [esp + 0x58], esi
lea ecx, [esp + 0x10]
call fcn.00402340
mov al, 1
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.00403280
mov esp, ebp
pop ebp
ret