Function at 0x41d617
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0x1c
push 0x423dc8
call fcn.00423b68
mov edi, ecx
mov dword [ebp - 0x24], edi
and dword [ebp - 0x20], 0
mov eax, dword [ebp + 8]
test eax, eax
jne 0x41d63b
mov eax, 0x407be8
mov dword [ebp + 8], eax
lea ecx, [ebp - 0x20]
push ecx
mov edx, 0x81
mov ecx, eax
call fcn.0041710c
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
js 0x41d8d5
mov eax, dword [ebp - 0x20]
add eax, 0x61
cmp eax, 0x60
jb 0x41d8c6
lea ecx, [eax + 0x400000]
cmp ecx, eax
jb 0x41d8c6
lea ebx, [ecx + 0x100000]
cmp ebx, ecx
jb 0x41d8c6
cmp ebx, 0x600000
ja 0x41d8c6
lea eax, [ebp - 0x2c]
push eax
push dword [edi + 0x418]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x41d6ad
push 0x582
jmp 0x41d790
xor esi, esi
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x28], esi
jg 0x41d6bc
cmp dword [ebp - 0x2c], ebx
je 0x41d710
push 0
push 0
push ebx
push dword [edi + 0x418]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x41d6e9
push 0x58e
call fcn.0040f835
mov edx, eax
lea ecx, [ebp - 0x1c]
call fcn.0041c7a5
mov esi, dword [ebp - 0x1c]
push dword [edi + 0x418]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41d710
push 0x593
call fcn.0040f835
mov edx, eax
lea ecx, [ebp - 0x1c]
call fcn.0041c7a5
mov esi, dword [ebp - 0x1c]
test esi, esi
js 0x41d8d5
push dword [edi + 0x418]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x41d72f
push 0x59b
jmp 0x41d790
lea eax, [edi + 0x208]
push eax
push ebx
push 0
push 4
push 0
push dword [edi + 0x418]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi + 0x41c], eax
test eax, eax
jne 0x41d75a
push 0x5a9
jmp 0x41d790
mov ecx, eax
call fcn.0041d097
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
js 0x41d8d5
push ebx
xor esi, esi
push esi
push esi
push 6
push dword [edi + 0x41c]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 0x420], eax
test eax, eax
jne 0x41d7a7
push 0x5b8
call fcn.0040f835
mov edx, eax
lea ecx, [ebp - 0x1c]
call fcn.0041c7a5
mov esi, dword [ebp - 0x1c]
jmp 0x41d8d5
mov dword [ebp - 4], esi
push ebx
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov ecx, dword [edi + 0x420]
mov dword [ecx], 0x4020077
mov dword [ecx + 4], esi
mov dword [edi + 0x424], 0x60
mov esi, dword [ebp - 0x20]
lea eax, [esi + 0x61]
mov dword [edi + 0x428], eax
mov dword [edi + 0x42c], 0x400000
lea edx, [eax + 0x400000]
mov dword [edi + 0x430], edx
mov dword [edi + 0x434], 0x100000
mov dword [edi + 0x438], ebx
mov dword [ecx + 8], eax
mov eax, dword [edi + 0x42c]
mov dword [ecx + 0xc], eax
xor edx, edx
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], edx
mov dword [ecx + 0x18], edx
mov dword [ecx + 0x1c], edx
mov dword [ecx + 0x20], edx
mov eax, dword [edi + 0x430]
mov dword [ecx + 0x24], eax
mov eax, dword [edi + 0x434]
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x2c], edx
mov dword [ecx + 0x30], edx
mov dword [ecx + 0x34], edx
mov dword [ecx + 0x38], edx
mov dword [ecx + 0x3c], edx
mov dword [ecx + 0x40], 0x80
mov eax, dword [edi + 0x424]
mov dword [ecx + 0x5c], eax
mov eax, dword [edi + 0x420]
cmp esi, edx
jbe 0x41d86a
push dword [ebp + 8]
lea edx, [esi + 1]
lea ecx, [eax + 0x60]
call fcn.0041c570
mov esi, eax
jmp 0x41d86f
mov byte [eax + 0x60], dl
mov esi, edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x41d8a4
cmp esi, 0x80070570
jne 0x41d8b5
mov ecx, edi
call fcn.0041f28f
jmp 0x41d8d5
test esi, esi
js 0x41d8d5
push 3
mov ecx, edi
call fcn.0041e62f
mov esi, eax
jmp 0x41d8d5
mov esi, 0x80070057
mov dword [0x42484c], 0x57a
mov eax, esi
call fcn.00423bad
ret 0xc