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

Disassembly:
push 0xffffffffffffffff
push 0x5662f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc4
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x24], edi
mov eax, dword [0x5d2d10]
mov ebp, ecx
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0xd8], edi
push ecx
mov ecx, ebp
call fcn.00435370
mov ecx, eax
call fcn.0047f310
mov eax, dword [eax]
mov byte [esp + 0xd8], 1
push eax
call fcn.0049e1f0
add esp, 4
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0xd8], 0
call fcn.00530b8f
call fcn.00514e21
cmp esi, edi
je 0x440799
push ebx
lea edx, [esp + 0x24]
push 0xf328
push edx
call fcn.00528836
add esp, 8
call fcn.004a58e0
mov esi, eax
mov eax, dword [esp + 0x24]
push 1
push eax
mov ebx, dword [esi]
mov ecx, ebp
call fcn.00435370
mov ecx, eax
call fcn.0047f3d0
push eax
mov ecx, esi
call dword [ebx + 0x64]
lea ecx, [esp + 0x54]
call fcn.0048a840
lea ecx, [esp + 0x20]
mov byte [esp + 0xdc], 2
push ecx
mov ecx, ebp
call fcn.00435370
mov ecx, eax
call fcn.0047f720
mov esi, dword [eax]
lea edx, [esp + 0x18]
mov ebx, 3
lea ecx, [ebp + 0x450]
push edx
mov byte [esp + 0xe0], bl
call fcn.0042d310
mov edx, dword [eax]
push esi
mov ecx, ebp
mov byte [esp + 0xe0], 4
call fcn.00435370
add eax, 0xc
push eax
lea eax, [esp + 0x5c]
push eax
push edx
call fcn.004825e0
add esp, 0x10
lea ecx, [esp + 0x18]
mov esi, eax
mov byte [esp + 0xdc], bl
call fcn.00530b8f
lea ecx, [esp + 0x20]
mov byte [esp + 0xdc], 2
call fcn.00530b8f
cmp esi, edi
je 0x440736
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebp
call fcn.00435370
mov ecx, eax
call fcn.0047f310
mov eax, dword [eax]
push edi
push 0x8000000
push ebx
push edi
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.00530b8f
cmp esi, 0xffffffff
je 0x440736
lea edx, [esp + 0x34]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov eax, dword [esp + 0x34]
push 1
push edi
push edi
push eax
call fcn.00515790
add ebx, eax
adc edi, edx
js 0x440736
jg 0x440244
cmp ebx, 2
jbe 0x440736
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
push esi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x440736
push ebx
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x440736
push 0xa
lea ecx, [esp + 0x3c]
call fcn.0052cf21
mov ecx, dword [0x5d2d10]
mov dword [esp + 0x1c], ecx
xor esi, esi
mov byte [esp + 0xdc], 6
test ebx, ebx
jbe 0x4403ff
mov al, byte [esi + edi]
test al, al
mov byte [esp + 0x18], al
je 0x4403ff
movsx edx, al
cmp edx, 0xff
je 0x4403ff
cmp al, 0xd
je 0x4402f9
cmp al, 0xa
je 0x4402f9
lea ecx, [ebx - 1]
cmp esi, ecx
je 0x4402f9
cmp al, 9
lea ecx, [esp + 0x1c]
jne 0x4402ea
push 0x20
call fcn.00530f92
jmp 0x4403f6
mov edx, dword [esp + 0x18]
push edx
call fcn.00530f92
jmp 0x4403f6
lea eax, [ebx - 1]
cmp esi, eax
jne 0x44030e
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x20]
call fcn.00530f92
lea ecx, [esp + 0x1c]
call fcn.00528914
lea ecx, [esp + 0x1c]
call fcn.00528a0b
mov edx, dword [esp + 0x1c]
mov eax, dword [edx - 8]
test eax, eax
je 0x4403f6
push 0x20
lea ecx, [esp + 0x20]
call fcn.00531056
test eax, eax
jle 0x4403ed
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
call fcn.005283d8
lea ecx, [esp + 0x10]
mov byte [esp + 0xdc], 7
call fcn.005310c3
mov ecx, dword [0x5d2d10]
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0xe4], 8
call fcn.0052d0d9
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x440398
lea edx, [esp + 0x1c]
jmp 0x4403b5
push 0xa
lea ecx, [esp + 0x18]
call fcn.00530f92
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00530fa7
lea edx, [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
lea ecx, [esp + 0x3c]
push eax
call fcn.0052d0ff
mov ecx, eax
call fcn.00530cc8
lea ecx, [esp + 0x14]
mov byte [esp + 0xdc], 7
call fcn.00530b8f
lea ecx, [esp + 0x10]
mov byte [esp + 0xdc], 6
call fcn.00530b8f
lea ecx, [esp + 0x1c]
call fcn.00530b1a
inc esi
cmp esi, ebx
jb 0x4402a9
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x44]
xor ebx, ebx
test eax, eax
je 0x440714
lea ecx, [esp + 0x54]
xor edi, edi
call fcn.0048ab00
test eax, eax
jle 0x440714
push edi
lea ecx, [esp + 0x58]
call fcn.0048aaf0
add eax, 4
lea ecx, [esp + 0x10]
push eax
call fcn.00530904
push 0x2f
lea ecx, [esp + 0x14]
mov byte [esp + 0xe0], 9
call fcn.0052847b
test eax, eax
jl 0x44046d
inc eax
lea ecx, [esp + 0x10]
push eax
push 0
call fcn.00527f21
lea ecx, [esp + 0x10]
call fcn.00528914
lea ecx, [esp + 0x10]
call fcn.00528a0b
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
je 0x440645
mov eax, dword [0x5d2d10]
mov dword [esp + 0x14], eax
push 0x20
lea ecx, [esp + 0x14]
mov byte [esp + 0xe0], 0xa
call fcn.00531056
test eax, eax
jle 0x4404cc
lea ecx, [esp + 0x2c]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.005283d8
or dword [esp + 0x28], 1
mov byte [esp + 0xdc], 0xb
jmp 0x4404d0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
call fcn.00530904
mov al, byte [esp + 0x28]
mov dword [esp + 0xdc], 0xd
test al, 1
je 0x440500
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
and al, 0xfe
mov dword [esp + 0x28], eax
call fcn.00530b8f
lea ecx, [esp + 0x20]
call fcn.005310c3
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x40]
call fcn.0052d0d9
test eax, eax
je 0x440623
push 0xa
push 0
lea ecx, [esp + 0x1c]
call fcn.00527f79
push 0xa
push 0
lea ecx, [esp + 0x18]
call fcn.00527f79
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call fcn.0052849d
mov esi, eax
test esi, esi
jge 0x4405a3
lea edx, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
call fcn.00530904
lea ecx, [esp + 0x10]
mov byte [esp + 0xdc], 0xe
call fcn.005310c3
lea ecx, [esp + 0x18]
call fcn.005310c3
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
call fcn.0052849d
lea ecx, [esp + 0x18]
mov esi, eax
mov byte [esp + 0xdc], 0xd
call fcn.00530b8f
test esi, esi
jl 0x440623
lea ecx, [esi + 1]
push ecx
push 0xa
lea ecx, [esp + 0x1c]
call fcn.00531064
test eax, eax
jge 0x4405bd
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x30]
mov ecx, dword [ecx - 8]
sub eax, ecx
add ecx, esi
sub eax, esi
push eax
push ecx
push edx
lea ecx, [esp + 0x20]
call fcn.005282c6
lea ecx, [esp + 0x30]
mov byte [esp + 0xdc], 0xf
call fcn.00528914
lea ecx, [esp + 0x30]
call fcn.00528a0b
lea eax, [esp + 0x30]
lea ecx, [esp + 0x54]
push eax
push edi
call fcn.0048aaf0
mov ecx, eax
add ecx, 0x14
call fcn.00530cc8
lea ecx, [esp + 0x30]
mov ebx, 1
mov byte [esp + 0xdc], 0xd
call fcn.00530b8f
lea ecx, [esp + 0x20]
mov byte [esp + 0xdc], 0xa
call fcn.00530b8f
lea ecx, [esp + 0x14]
mov byte [esp + 0xdc], 9
call fcn.00530b8f
lea ecx, [esp + 0x10]
mov byte [esp + 0xdc], 6
call fcn.00530b8f
lea ecx, [esp + 0x54]
inc edi
call fcn.0048ab00
cmp edi, eax
jl 0x440432
test ebx, ebx
je 0x440714
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebp
call fcn.00435370
mov ecx, eax
call fcn.0047f720
mov esi, dword [eax]
lea edx, [esp + 0x2c]
lea edi, [ebp + 0x450]
mov bl, 0x10
push edx
mov ecx, edi
mov byte [esp + 0xe0], bl
call fcn.0042d310
mov edx, dword [eax]
push esi
mov ecx, ebp
mov byte [esp + 0xe0], 0x11
call fcn.00435370
add eax, 0xc
push eax
lea eax, [esp + 0x5c]
push eax
push edx
call fcn.00481a40
add esp, 0x10
lea ecx, [esp + 0x2c]
mov byte [esp + 0xdc], bl
call fcn.00530b8f
lea ecx, [esp + 0x18]
mov byte [esp + 0xdc], 6
call fcn.00530b8f
lea ecx, [esp + 0x2c]
push ecx
mov ecx, edi
call fcn.0042d310
mov eax, dword [eax]
mov ecx, ebp
push eax
mov byte [esp + 0xe0], 0x12
call fcn.00438420
lea ecx, [esp + 0x2c]
mov byte [esp + 0xdc], 6
call fcn.00530b8f
lea ecx, [esp + 0x1c]
mov byte [esp + 0xdc], 5
call fcn.00530b8f
lea ecx, [esp + 0x38]
mov byte [esp + 0xdc], 2
call fcn.0052cfbe
lea edx, [esp + 0x24]
push 0xf329
push edx
call fcn.00528836
add esp, 8
call fcn.004a58e0
mov esi, eax
mov eax, dword [esp + 0x24]
push 1
push eax
mov edi, dword [esi]
mov ecx, ebp
call fcn.00435370
mov ecx, eax
call fcn.0047f3d0
push eax
mov ecx, esi
call dword [edi + 0x64]
call fcn.00514e21
lea ecx, [esp + 0x54]
mov byte [esp + 0xdc], 0
call fcn.0048a8e0
lea ecx, [esp + 0x24]
mov dword [esp + 0xdc], 0xffffffff
call fcn.00530b8f
pop ebx
jmp 0x4407ad
lea ecx, [esp + 0x20]
mov dword [esp + 0xd8], 0xffffffff
call fcn.00530b8f
mov ecx, dword [esp + 0xd0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0xd0
ret