Function at 0x482dd0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x482dd9
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x482dfa
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x482e05
xor edx, edx
mov dword [eax], edx
xor eax, eax
push ebp
push 0x48305a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
push 0
push 0x1f4
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x328]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
cmp byte [ebp + 8], 0
je 0x482e61
push 0
push 0x1f4
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x330]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
cmp byte [ebp + 0xc], 0
je 0x482ea6
push 0
push 0x1f4
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x338]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
push 0
push 0x64
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x340]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
jmp 0x482ec6
push 0
push 0x1388
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x338]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0040be58
push eax
mov eax, dword [ebp + 0x18]
mov ecx, 1
mov edx, dword [0x414404]
call fcn.0040c074
add esp, 4
mov eax, dword [ebp - 0xc]
call fcn.0040be58
push eax
mov eax, dword [ebp + 0x14]
mov ecx, 1
mov edx, dword [0x4143a4]
call fcn.0040c074
add esp, 4
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
call fcn.0040be60
mov esi, eax
test esi, esi
jl 0x482fee
inc esi
xor ebx, ebx
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x482f56
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + ebx*4]
call fcn.0040abbc
push eax
call sub.kernel32.dll_CreateFileW
mov edx, dword [ebp + 0x18]
mov edx, dword [edx]
mov dword [edx + ebx*4], eax
jmp 0x482f8e
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + ebx*4]
mov ecx, 0
call fcn.0040a85c
mov eax, dword [ebp - 0x24]
call fcn.0040a6b0
push eax
call sub.kernel32.dll_CreateFileA
mov edx, dword [ebp + 0x18]
mov edx, dword [edx]
mov dword [edx + ebx*4], eax
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edi, dword [eax + ebx*4]
cmp edi, 0xffffffff
je 0x482fda
mov eax, dword [ebp + 0x10]
inc dword [eax]
push 0
push edi
call sub.kernel32.dll_GetFileSize
mov edx, dword [ebp + 0x14]
mov edx, dword [edx]
mov dword [edx + ebx*4], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
shr eax, 4
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x350]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
jmp 0x482fe6
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov dword [eax + ebx*4], 0xffffffff
inc ebx
dec esi
jne 0x482f20
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jg 0x483000
cmp dword [ebp - 0xc], 0
je 0x483000
xor ebx, ebx
jmp 0x483002
mov bl, 1
push 0
push 0x3e8
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x358]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483061
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00409cc0
lea eax, [ebp - 0x24]
call fcn.00409c84
lea eax, [ebp - 0x20]
mov edx, 5
call fcn.00409cc0
ret