Function at 0x403bbd
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
push dword [esi + 0x624]
push ebx
push dword [esi + 0x61c]
call fcn.0041a310
push dword [esi + 0x624]
push ebx
push dword [esi + 0x620]
call fcn.0041a310
mov eax, dword [ebp + 0x18]
add esp, 0x18
cmp eax, ebx
je 0x403bfc
cmp byte [eax], bl
jne 0x403c03
mov dword [ebp + 0x18], 0x43c258
mov ecx, dword [ebp + 8]
cmp ecx, ebx
je 0x403c9d
cmp byte [ecx], 0
je 0x403c9d
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x403c9d
cmp byte [edi], 0
je 0x403c9d
lea eax, [esi + 0x20c]
push ecx
push eax
call fcn.0041a370
lea eax, [esi + 0x414]
push edi
push eax
call fcn.0041a370
add esp, 0x10
mov edi, 0x80000000
lea eax, [esi + 0x20c]
mov ecx, esi
push edi
push eax
call fcn.004040b6
test eax, eax
je 0x403c9d
lea eax, [esi + 0x414]
push edi
push eax
mov ecx, esi
call fcn.004040b6
test eax, eax
je 0x403c70
cmp dword [ebp + 0x10], ebx
jne 0x403c9d
push 1
pop eax
push ebx
push eax
push 3
push ebx
mov dword [esi + 0x62c], eax
push eax
lea eax, [esi + 0x20c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x403ca6
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14
push ebx
push 0x80
push 2
push ebx
push ebx
lea eax, [esi + 0x414]
push 0xc0000000
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x403c97
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
mov dword [ebp - 0x1c], ebx
push dword [ebp + 8]
mov dword [ebp - 0x18], ebx
call fcn.004040d7
test eax, eax
je 0x403c9d
mov eax, dword [ebp - 0x1c]
or eax, dword [ebp - 0x18]
je 0x403c9d
push ebx
push ebx
push ebx
push 2
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x403c97
mov eax, dword [esi + 0x624]
mov dword [esi + 0x630], ebx
cdq
cmp dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
jg 0x403d26
jl 0x403d1b
cmp dword [ebp - 0x1c], eax
ja 0x403d26
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
jmp 0x403d56
cmp dword [ebp - 0x18], ebx
jl 0x403d4a
jg 0x403d32
cmp dword [ebp - 0x1c], ebx
jbe 0x403d4a
add dword [ebp - 0x14], eax
adc dword [ebp - 0x10], edx
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x18]
jl 0x403d32
jg 0x403d4a
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x1c]
jb 0x403d32
sub dword [ebp - 0x14], eax
mov edi, dword [ebp - 0x1c]
sbb dword [ebp - 0x10], edx
sub edi, dword [ebp - 0x14]
cmp dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], 1
jl 0x403f00
jg 0x403d71
cmp dword [ebp - 0x1c], ebx
jbe 0x403f00
sub dword [ebp - 0x1c], edi
push edi
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x10]
sbb dword [ebp - 0x18], ebx
push 4
push dword [ebp - 8]
sar eax, 0x1f
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x403edf
push dword [esi + 0x620]
call fcn.0041a460
push dword [esi + 0x624]
mov dword [ebp + 0x10], eax
push ebx
push dword [esi + 0x61c]
call fcn.0041a310
push edi
push dword [ebp - 4]
push dword [esi + 0x61c]
call fcn.00419fd0
add esp, 0x1c
cmp dword [ebp + 0x10], ebx
je 0x403deb
push dword [ebp + 0x10]
mov eax, dword [esi + 0x61c]
add eax, edi
push dword [esi + 0x620]
push eax
call fcn.00419fd0
add esp, 0xc
push dword [esi + 0x624]
push ebx
push dword [esi + 0x620]
call fcn.0041a310
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ebx, dword [esi + 0x61c]
mov eax, dword [ebp + 0x10]
add eax, ebx
lea edi, [eax + edi - 1]
mov eax, edi
cmp edi, ebx
mov dword [ebp + 0x10], eax
jb 0x403e67
push dword [ebp + 0x18]
mov ecx, esi
push edi
push edi
push ebx
call fcn.00403f27
xor ecx, ecx
mov dword [ebp - 4], eax
cmp eax, ecx
je 0x403e62
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x18]
call fcn.0041a460
mov edi, dword [ebp - 4]
pop ecx
add eax, edi
mov ecx, esi
push eax
push dword [ebp + 0xc]
call fcn.00403f82
test eax, eax
je 0x403efe
dec edi
jmp 0x403e18
mov eax, dword [ebp + 0x10]
jmp 0x403e69
xor ecx, ecx
cmp dword [ebp - 0x18], ecx
jl 0x403eec
jg 0x403e75
cmp dword [ebp - 0x1c], ecx
jbe 0x403eec
cmp eax, ebx
jb 0x403eaa
sub eax, ebx
inc eax
mov edi, eax
cmp edi, dword [esi + 0x624]
jg 0x403ee7
push edi
push ebx
push dword [esi + 0x620]
call fcn.00419fd0
mov eax, dword [esi + 0x620]
push 4
add eax, edi
push 0
push eax
call fcn.0041a310
add esp, 0x18
xor ecx, ecx
mov edi, dword [esi + 0x624]
sub dword [ebp - 0x14], edi
sbb dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], ecx
jg 0x403ecb
jl 0x403ec2
cmp dword [ebp - 0x14], ecx
jae 0x403ecb
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x18], ecx
jl 0x403efe
jg 0x403ed8
cmp dword [ebp - 0x1c], 0
jbe 0x403efe
xor ebx, ebx
jmp 0x403d71
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x403f00
mov dword [ebp - 0xc], ecx
jmp 0x403efe
push dword [ebp + 0x14]
mov ecx, esi
push dword [ebp + 0x18]
push eax
push ebx
push dword [ebp + 0xc]
call fcn.00403f82
xor ebx, ebx
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp dword [ebp + 8], ebx
je 0x403f15
push dword [ebp + 8]
call esi
cmp dword [ebp + 0xc], ebx
je 0x403f1f
push dword [ebp + 0xc]
call esi
mov eax, dword [ebp - 0xc]
jmp 0x403c9f