Function at 0x492ed0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
xor edx, edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49311b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00493160
mov eax, dword [ebp - 4]
mov dword [0x4b01c0], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x11c], 0
cmp dword [0x4ac45c], 0
jne 0x492f3a
lea eax, [ebp - 0x40]
mov ecx, 0x493130
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x40]
call fcn.00404d58
mov eax, dword [ebp - 0x40]
call fcn.00404cdc
call fcn.00481958
mov dword [0x4ac45c], eax
push 0x493140
mov eax, dword [0x4ac45c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b01c4], eax
mov eax, dword [ebp - 4]
add eax, 0x130
push eax
mov eax, dword [0x4ae220]
push eax
push 0x4ac444
call dword [0x4b01c4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xd0]
call fcn.00480884
test al, al
jne 0x492f87
mov byte [ebp - 5], 1
jmp 0x493100
mov eax, dword [ebp - 4]
mov dword [eax + 0x98], 0
mov dword [eax + 0x9c], 0
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xd0]
call fcn.00480730
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x44]
call fcn.00492aa8
mov eax, dword [ebp - 0x44]
mov edx, 0x493154
call fcn.00404e04
jne 0x493003
mov edx, 0x40
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xd0]
call fcn.00480804
mov dword [ebp - 0x14], eax
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetFileSize
xor edx, edx
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x98], eax
mov dword [ecx + 0x9c], edx
mov eax, dword [ebp - 0x14]
call fcn.00409a78
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf4]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x98]
mov dword [eax + 0x18], ecx
mov ecx, dword [edx + 0x9c]
mov dword [eax + 0x1c], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xd0]
call fcn.00404cdc
mov edx, eax
xor ecx, ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf4]
call fcn.00490010
mov dl, 1
mov eax, dword [0x492880]
call fcn.00403518
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x493061
sub eax, 0xfffffff0
push eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf4]
test eax, eax
je 0x493074
sub eax, 0xffffffd8
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
sete al
mov edx, dword [ebp - 4]
mov byte [edx + 0x45], al
mov word [ebp - 0x3c], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x45], 0
je 0x4930b7
lea eax, [ebp - 0x3c]
push eax
push 0xd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
push eax
mov eax, dword [eax]
call dword [eax + 0x20]
test eax, eax
je 0x4930bb
xor eax, eax
jmp 0x4930bd
mov al, 1
mov edx, dword [ebp - 4]
mov byte [edx + 0x45], al
cmp word [ebp - 0x34], 1
sbb eax, eax
inc eax
mov edx, dword [ebp - 4]
mov byte [edx + 0x47], al
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x47]
mov edx, dword [ebp - 4]
mov byte [edx + 0x48], al
mov eax, dword [ebp - 4]
cmp byte [eax + 0x45], 0
jne 0x4930f7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf4]
mov eax, dword [eax + 0xc]
call fcn.0048f8b8
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x45]
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x493122
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.00404aa0
ret