Function at 0x45d1d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x469894
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x484db8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push 0
lea ecx, [ebp - 0xb9]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp + 0x10]
push ecx
mov dword [ebp - 0xcc], 0
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0xc8], edi
mov dword [ebp - 0x40], 0x471efc
mov dword [ebp - 0x18], 0x46cf9c
call fcn.004065d0
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.004542c0
mov ebx, 1
mov byte [ebp - 4], 1
mov dword [ebp - 0xcc], ebx
test eax, eax
je 0x45d268
lea ecx, [eax + 4]
jmp 0x45d26a
xor ecx, ecx
cmp dword [ecx + 0x14], 8
mov esi, dword [ecx + 0x10]
jb 0x45d275
mov ecx, dword [ecx]
mov eax, 4
cmp esi, eax
cmovb eax, esi
push eax
push 0x476588
push ecx
call fcn.0043fa2e
add esp, 0xc
test eax, eax
jne 0x45d2a6
cmp esi, 4
jae 0x45d29c
or eax, 0xffffffff
jmp 0x45d2a4
xor eax, eax
cmp esi, 4
setne al
test eax, eax
sete al
test al, al
jne 0x45d300
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x40]
call fcn.004542c0
mov ebx, 3
test eax, eax
je 0x45d2ca
add eax, 4
jmp 0x45d2cc
xor eax, eax
cmp dword [eax + 0x14], 8
mov esi, dword [eax + 0x10]
jb 0x45d2d7
mov eax, dword [eax]
push 0
push 0x4767e0
push eax
call fcn.0043fa2e
add esp, 0xc
test eax, eax
jne 0x45d2f2
test esi, esi
setne al
test eax, eax
sete al
mov byte [ebp - 0xb9], 0
test al, al
je 0x45d307
mov byte [ebp - 0xb9], 1
test bl, 2
je 0x45d31a
lea ecx, [ebp - 0xb8]
and ebx, 0xfffffffd
call fcn.00401500
mov dword [ebp - 4], 0
test bl, 1
je 0x45d32e
lea ecx, [ebp - 0x7c]
call fcn.00401500
cmp byte [ebp - 0xb9], 0
je 0x45d354
push dword [ebp + 0x14]
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0xc0]
push edi
call fcn.0045d880
add esp, 0x10
mov edi, eax
jmp 0x45d4b7
cmp dword [ebp - 0x28], 8
push 0
push 0x80
push 3
push 0
push 1
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0xcc], esi
mov byte [ebp - 4], 3
cmp esi, 0xffffffff
je 0x45d4a5
lea eax, [ebp - 0xc4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45d4a5
cmp dword [ebp - 0xc4], 0
jne 0x45d4a5
push ebx
call fcn.0043e61d
mov edi, eax
add esp, 4
test edi, edi
je 0x45d4a5
push 0
lea eax, [ebp - 0xc4]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45d49c
cmp dword [ebp - 0xc4], 0
je 0x45d49c
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x40]
call fcn.004542c0
mov byte [ebp - 4], 4
test eax, eax
je 0x45d406
add eax, 4
jmp 0x45d408
xor eax, eax
push str..bmp
push eax
call fcn.00411414
add esp, 8
lea ecx, [ebp - 0x7c]
mov bl, al
mov byte [ebp - 4], 3
call fcn.00401500
test bl, bl
je 0x45d43c
push edi
push dword [ebp - 0xc0]
push dword [ebp - 0xc8]
call fcn.0045d850
jmp 0x45d485
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x40]
call fcn.004542c0
mov byte [ebp - 4], 5
test eax, eax
je 0x45d455
add eax, 4
jmp 0x45d457
xor eax, eax
push str..wmf
push eax
call fcn.00411414
add esp, 8
lea ecx, [ebp - 0x7c]
mov bl, al
call fcn.00401500
test bl, bl
je 0x45d49c
push edi
push dword [ebp - 0xc0]
push dword [ebp - 0xc8]
call fcn.0045d8d0
add esp, 0xc
test eax, eax
je 0x45d49c
push edi
call fcn.0043ebe5
add esp, 4
mov edi, 1
jmp 0x45d4a7
push edi
call fcn.0043ebe5
add esp, 4
xor edi, edi
test esi, esi
je 0x45d4b7
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x45d4b7
push esi
call eax
lea ecx, [ebp - 0x40]
call fcn.00401500
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043e8f7
mov esp, ebp
pop ebp
ret