Function at 0x44478d
Capabilities:
Access peb ldr_data
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f7ff9
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x54b0c4]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
push edi
mov eax, dword [0x54b0c4]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [0x550310]
xor esi, esi
mov ecx, 0x550310
mov dword [esp + 0x28], esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
push 0x206
lea eax, [esp + 0x32]
push esi
mov dword [esp + 0x250], esi
push eax
mov word [esp + 0x38], si
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [esp + 0x30]
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea ecx, [esp + 0x2c]
mov ebx, eax
push ecx
lea eax, [esp + 0x14]
call fcn.00402ad1
push dword [esp + 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00402d46
push 0x2e
lea esi, [esp + 0x14]
call fcn.0040742c
cmp eax, 0xffffffff
je 0x444896
mov ecx, eax
lea edx, [esp + 0x1c]
mov eax, esi
call fcn.0040650a
mov edi, esi
mov byte [esp + 0x248], 1
call fcn.00402a90
xor ebx, ebx
mov byte [esp + 0x248], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.004012f9
jmp 0x444898
xor ebx, ebx
call fcn.00407b93
lea eax, [esp + 0x24]
call fcn.00444a09
mov byte [esp + 0x248], 2
mov eax, dword [esp + 0x24]
cmp dword [eax - 0xc], ebx
je 0x444a03
call fcn.00407b93
mov ecx, eax
call fcn.0040700c
fstp dword [esp + 0x14]
mov eax, dword [0x550310]
mov ecx, 0x550310
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
fld dword [esp + 0x14]
push 0x50c45c
push ecx
push ecx
mov byte [esp + 0x254], 3
fstp qword [esp]
push dword [ebp + 8]
fld dword [esp + 0x24]
lea eax, [esp + 0x28]
push dword [esp + 0x20]
push ecx
push ecx
fstp qword [esp]
push dword [esp + 0x40]
push str._s_.1f_s_d__.1f._s
call fcn.00401a57
add esp, 0x24
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x4449f7
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
je 0x4449ed
mov esi, dword [esp + 0x20]
push ebx
lea eax, [esp + 0x20]
push eax
push edi
lea eax, [edi + 0xa]
push eax
mov dword [esp + 0x2c], ebx
call fcn.004052a5
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
mov dword [esp + 0x28], eax
je 0x4449e4
cmp dword [esp + 0x1c], edi
jne 0x4449e4
mov eax, edi
call fcn.00425915
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.004012f9
xor esi, esi
inc esi
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, esi
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.004d0736
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov edx, esi
call fcn.004053a6
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.004012f9
mov esi, dword [esp + 0x28]
jmp 0x4449a4