Function at 0x451171
Capabilities:
Get file attributes
Get file size

Disassembly:
push 0xa3c
mov eax, 0x52fce1
call fcn.00511d7c
mov ebx, dword [ebp + 8]
mov edi, ecx
xor esi, esi
xor eax, eax
mov dword [ebp - 0xa30], ebx
cmp dword [edi + 0x24], esi
jne 0x451402
cmp ebx, esi
setne al
cmp eax, esi
jne 0x4511a6
call fcn.00410e8f
lea eax, [edi + 0x80]
push eax
call fcn.0042334a
push ebx
lea ecx, [ebp - 0xa2c]
call fcn.00402430
push esi
push 0x5680d8
lea ecx, [ebp - 0xa2c]
mov dword [ebp - 4], esi
call fcn.00407bf0
cmp eax, 0xffffffff
jne 0x4512ae
push esi
push 0x56861c
lea ecx, [ebp - 0xa2c]
call fcn.00407bf0
cmp eax, 0xffffffff
jne 0x4512ae
push esi
push 0x544950
lea ecx, [ebp - 0xa2c]
call fcn.00407bf0
cmp eax, 0xffffffff
jne 0x4512ae
push 0x104
lea eax, [ebp - 0x828]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jbe 0x4512ae
push esi
push esi
push esi
push esi
mov ebx, 0x100
push ebx
lea eax, [ebp - 0xa28]
push eax
push 3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x828]
push eax
call fcn.00514e60
push ebx
lea eax, [ebp - 0x218]
push eax
push ebx
lea eax, [ebp - 0x418]
push eax
push esi
push esi
push esi
push esi
push dword [ebp - 0xa30]
call fcn.00514e60
add esp, 0x48
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0xa28]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x620]
push 0x104
push eax
call fcn.00514d3c
add esp, 0x18
lea eax, [ebp - 0x620]
push eax
lea ecx, [ebp - 0xa2c]
call fcn.00402d30
cmp dword [ebp + 0xc], esi
jbe 0x451307
push esi
push esi
push 4
push esi
push 1
push SysReAllocString
push dword [ebp - 0xa30]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x451307
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
mov dword [ebp - 0xa30], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0xa30], eax
jbe 0x451307
mov ecx, dword [ebp - 0xa2c]
add ecx, 0xfffffff0
call fcn.004011d0
xor eax, eax
jmp 0x451402
mov dword [ebp - 0xa30], 0x2010
cmp dword [edi + 0x30], esi
je 0x451320
mov dword [ebp - 0xa30], 0x3010
mov ebx, dword [ebp - 0xa2c]
call fcn.00419c29
push dword [ebp - 0xa30]
mov eax, dword [eax + 8]
push esi
push esi
push esi
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
lea ebx, [edi + 0x80]
mov dword [ebx], eax
cmp eax, esi
je 0x4512f2
lea ecx, [ebp - 0xa48]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
jne 0x45136b
push dword [ebx]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebx], esi
jmp 0x4512f2
lea eax, [ebp - 0xa2c]
push eax
lea ecx, [edi + 0x8c]
mov dword [edi + 0x14], 1
call fcn.00407ef0
push dword [ebp - 0xa2c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x45139b
mov dword [edi + 0x20], 1
movzx eax, word [ebp - 0xa36]
cmp eax, 8
mov dword [edi + 8], eax
jle 0x4513bb
cmp eax, 0x20
jge 0x4513bb
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
mov ecx, edi
call fcn.0044d876
cmp word [ebp - 0xa36], 0x20
jb 0x4513ce
push dword [ebx]
mov ecx, edi
call fcn.0044cdb3
mov ecx, edi
call fcn.0044c7e9
lea ebx, [edi + 0x84]
push ebx
call fcn.0042334a
add edi, 0x88
push edi
mov dword [ebx], esi
call fcn.0042334a
mov ecx, dword [ebp - 0xa2c]
add ecx, 0xfffffff0
mov dword [edi], esi
call fcn.004011d0
xor eax, eax
inc eax
call fcn.00511dff
ret 8