Function at 0x45e000
Capabilities:
Access peb ldr_data
Check if file exists
Get file size
Get kernel32 base address
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x48302c
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a0fe0]
xor eax, esp
push eax
lea eax, [esp + 0xec]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [0x4a5a34]
mov edx, dword [eax + 0xc]
xor edi, edi
mov ecx, 0x4a5a34
mov dword [esp + 0xf4], edi
mov byte [esp + 0x17], 1
mov dword [esp + 0x48], edi
mov dword [esp + 0x58], edi
call edx
add eax, 0x10
mov dword [esp + 0x28], eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov eax, dword [0x4a5a34]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a5a34
mov byte [esp + 0xf4], 2
call edx
add eax, 0x10
mov dword [esp + 0x24], eax
mov eax, dword [0x4a5a34]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a5a34
mov byte [esp + 0xf4], 3
mov dword [esp + 0x18], edi
call edx
add eax, 0x10
mov dword [esp + 0x30], eax
mov eax, dword [0x4a5a34]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a5a34
mov byte [esp + 0xf4], 4
call edx
add eax, 0x10
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xf4], 5
call fcn.0044c970
push str.ProgramDataList
lea eax, [esp + 0x100]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00457f10
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, dword [esp + 0x1c]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45e11e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x45e12c
mov byte [esp + 0x17], 1
jmp 0x45e5ad
push str.ProgramDataList
lea ecx, [esp + 0x100]
push ecx
lea edx, [esp + 0x5c]
push edx
call fcn.00457f10
mov eax, dword [eax]
add esp, 0xc
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
mov dword [esp + 0x34], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45e185
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebx, 0xffffffff
jne 0x45e194
mov byte [esp + 0x17], 0
jmp 0x45e5ad
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x45e1ad
mov byte [esp + 0x17], 0
jmp 0x45e580
lea ecx, [esi + 2]
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
cmp ebx, edi
mov dword [esp + 0x48], ebx
jne 0x45e1d4
mov byte [esp + 0x17], 0
jmp 0x45e57c
mov eax, dword [esp + 0x34]
push edi
lea edx, [esp + 0x5c]
push edx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea ecx, [esp + 0x2c]
call fcn.0044c510
push 0x48910c
lea ecx, [esp + 0x2c]
call fcn.00457e60
lea ecx, [esp + 0x18]
push ecx
push 0x489104
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x34]
call fcn.0045c0e0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0xf8], 6
call fcn.0044c620
lea ecx, [esp + 0x1c]
mov byte [esp + 0xf4], 5
call fcn.00448f90
mov eax, dword [esp + 0x24]
cmp dword [eax - 0xc], edi
je 0x45e2ad
mov bl, 7
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x3c]
call fcn.0045ddf0
lea edx, [esp + 0x18]
push edx
push 0x489104
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x34]
call fcn.0045c0e0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0xf8], bl
call fcn.0044c620
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0xf4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45e2a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
cmp dword [ecx - 0xc], edi
jne 0x45e245
lea edx, [esp + 0xfc]
push edx
lea ecx, [esp + 0x34]
call fcn.0044c620
mov eax, dword [ebp + 0x28c]
mov eax, dword [eax - 0xc]
push eax
push edi
lea ecx, [esp + 0x38]
call fcn.00457410
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00457570
mov ebx, dword [esp + 0x50]
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x3c], eax
mov esi, eax
jbe 0x45e2f5
call fcn.0046de9f
mov eax, dword [esp + 0x4c]
cmp eax, edi
je 0x45e305
lea edx, [esp + 0x38]
cmp eax, edx
je 0x45e30e
call fcn.0046de9f
mov eax, dword [esp + 0x4c]
cmp ebx, esi
je 0x45e56b
cmp eax, edi
jne 0x45e323
call fcn.0046de9f
mov eax, dword [esp + 0x4c]
cmp ebx, dword [eax + 8]
jb 0x45e32d
call fcn.0046de9f
mov eax, dword [ebx]
sub eax, 0x10
push eax
call fcn.0044c830
lea edi, [eax + 0x10]
mov dword [esp + 0x20], edi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x104]
push ecx
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x104], 8
call fcn.0044c550
lea eax, [esp + 0x40]
push eax
lea ecx, [ebp + 0x290]
push ecx
lea edx, [esp + 0x74]
push edx
mov byte [esp + 0x110], 9
call fcn.0044c550
lea ecx, [esp + 0x38]
push ecx
push eax
lea edx, [esp + 0x44]
push edx
mov byte [esp + 0x11c], 0xa
call fcn.0044c550
add esp, 0x28
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
mov byte [esp + 0xf4], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45e3bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45e3ef
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0xf4], 9
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x45e4fb
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x6c]
mov dword [esp + 0x68], ecx
call dword [0x4a23c0]
push eax
push esi
lea ecx, [esp + 0x70]
call fcn.00455040
mov edx, dword [esp + 0x68]
push edx
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x6c]
cmp eax, ecx
je 0x45e42c
push eax
call fcn.0046d1a5
add esp, 4
mov eax, dword [esp + 0x20]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x68], esp
mov esi, esp
push eax
call fcn.0044c830
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x68], esp
mov esi, esp
push eax
mov byte [esp + 0x100], 0xd
call fcn.0044c830
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov ecx, ebp
mov byte [esp + 0xfc], 0xc
call fcn.00459280
movzx eax, al
test eax, eax
jne 0x45e4df
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
push edx
push eax
push str._ERROR_MoveProgramDataList___MoveFileEx_ExistingFile_s__NewFile_s___d___n
call fcn.00401010
add esp, 0x10
call esi
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
push 0x488fd0
push 2
call fcn.00448d80
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
push 0
push eax
push ecx
push 0x488fcc
push 0x488fc4
lea edx, [esp + 0x54]
push str._s__s__s__s__d_n
push edx
call fcn.00448fd0
add esp, 0x30
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0xf4], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45e507
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0xf4], 8
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45e52f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0xf4], 5
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45e553
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x4c]
cmp ebx, dword [ecx + 8]
jb 0x45e561
call fcn.0046de9f
add ebx, 4
xor edi, edi
jmp 0x45e2e4
mov ecx, dword [esp + 0x100]
lea edx, [esp + 0x2c]
push edx
call fcn.0044c620
mov ebx, dword [esp + 0x34]
cmp ebx, edi
je 0x45e58b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x48]
cmp ebx, edi
je 0x45e5ad
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0xf4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45e5d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0xf4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45e5fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0xf4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45e625
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x3c]
cmp eax, edi
mov byte [esp + 0xf4], 1
je 0x45e657
mov ecx, dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x3c]
push edx
push ecx
push eax
call fcn.00459bd0
mov edx, dword [esp + 0x4c]
push edx
call fcn.00464923
add esp, 0x14
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov byte [esp + 0xf4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45e68b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xfc]
add eax, 0xfffffff0
mov dword [esp + 0xf4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45e6b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0xec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe4
ret 8