Function at 0x532544
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x1d
push 0
push 0
dec ecx
jne 0x53254d
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040550c
mov eax, dword [ebp - 8]
call fcn.0040550c
xor eax, eax
push ebp
push 0x5328ee
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x5328b6
mov eax, dword [0x544fc4]
cmp byte [eax + 5], 0
jne 0x53275b
lea edx, [ebp - 0xcc]
mov eax, dword [ebp - 4]
call fcn.0040d894
push dword [ebp - 0xcc]
push 0x532908
push dword [ebp - 8]
lea eax, [ebp - 0xc8]
mov edx, 3
call fcn.004053dc
mov eax, dword [ebp - 0xc8]
lea edx, [ebp - 0x24]
call fcn.0040c9a4
mov edx, dword [ebp - 0x24]
mov eax, 0x532914
call fcn.00405660
test eax, eax
jle 0x5325f0
mov eax, dword [ebp + 8]
mov dword [eax], 0x2710
jmp 0x53275b
mov edx, dword [ebp - 0x24]
mov eax, 0x532930
call fcn.00405660
test eax, eax
jle 0x53260f
mov eax, dword [ebp + 8]
mov dword [eax], 0x2711
jmp 0x53275b
mov edx, dword [ebp - 0x24]
mov eax, 0x53294c
call fcn.00405660
test eax, eax
jle 0x53262e
mov eax, dword [ebp + 8]
mov dword [eax], 0x2712
jmp 0x53275b
mov edx, dword [ebp - 0x24]
mov eax, 0x532968
call fcn.00405660
test eax, eax
jle 0x53264d
mov eax, dword [ebp + 8]
mov dword [eax], 0x2713
jmp 0x53275b
mov edx, dword [ebp - 0x24]
mov eax, 0x532988
call fcn.00405660
test eax, eax
jle 0x53266c
mov eax, dword [ebp + 8]
mov dword [eax], 0x2713
jmp 0x53275b
mov edx, dword [ebp - 0x24]
mov eax, 0x5329a8
call fcn.00405660
test eax, eax
jle 0x53268b
mov eax, dword [ebp + 8]
mov dword [eax], 0x2714
jmp 0x53275b
xor eax, eax
push ebp
push 0x532707
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xd4]
mov eax, dword [ebp - 4]
call fcn.0040d894
push dword [ebp - 0xd4]
push 0x5329bc
push dword [ebp - 8]
lea eax, [ebp - 0xd0]
mov edx, 3
call fcn.004053dc
mov eax, dword [ebp - 0xd0]
lea edx, [ebp - 0x28]
call fcn.0040c9a4
lea eax, [ebp - 0x28]
call fcn.00405574
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
call fcn.0040531c
mov ecx, eax
mov edx, dword [ebp - 0x2c]
or eax, 0xffffffff
call fcn.004a02e4
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
not dword [eax]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x53275b
mov eax, dword [0x544fc4]
cmp byte [eax + 6], 0
jne 0x5328b6
push 0x40
lea eax, [ebp - 0xb4]
push eax
mov eax, dword [ebp - 4]
call fcn.0040551c
push eax
call sub.kernel32.dll_OpenFile
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x532856
xor eax, eax
push ebp
push 0x5327f7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileTime
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call sub.kernel32.dll_FileTimeToLocalFileTime
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0x14]
push eax
call sub.kernel32.dll_FileTimeToSystemTime
lea eax, [ebp - 0xc4]
call fcn.0040f4c4
mov eax, dword [ebp + 0x10]
fstp qword [eax]
wait
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize_1
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x53284b
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x5328b6
push 0x532a34
push dword [ebp - 4]
push 0x532a58
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xec]
call fcn.0040d210
push dword [ebp - 0xec]
push 0x532a64
lea eax, [ebp - 0xe8]
mov edx, 5
call fcn.004053dc
mov edx, dword [ebp - 0xe8]
mov ecx, 0x5329f8
mov eax, dword [0x54a800]
call fcn.005374b8
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dword [eax], edx
mov dword [eax + 4], edx
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [eax], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5328f5
lea eax, [ebp - 0xec]
mov edx, 0xa
call fcn.00405080
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00405080
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405080
ret