Function at 0x410868
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x410ac9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
je 0x410aa6
mov eax, dword [ebp - 4]
cmp byte [eax + 0x30], 0
jne 0x410aa6
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0xc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, 0x410ae0
call fcn.0040ce98
lea edx, [ebp - 0x20]
mov eax, 0x410aec
call fcn.004070f0
push dword [ebp - 0x20]
push 0x410afc
push dword [ebp - 8]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00403db4
mov eax, dword [ebp - 0x1c]
call fcn.00403eec
push eax
call fcn.0040cab0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x410aa6
xor edx, edx
push ebp
push 0x410a9f
push dword fs:[edx]
mov dword fs:[edx], esp
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetCurrentThreadId
xor edx, edx
push ebp
push 0x410a81
push dword fs:[edx]
mov dword fs:[edx], esp
push 0xffffffffffffffff
lea edx, [ebp - 0x28]
mov eax, 0x410b08
call fcn.004070f0
push dword [ebp - 0x28]
push 0x410afc
push dword [ebp - 8]
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00403db4
mov eax, dword [ebp - 0x24]
call fcn.00403eec
push eax
call fcn.0040cda8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x410a45
xor edx, edx
push ebp
push 0x410a3e
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_lstrcpyW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x410a27
xor edx, edx
push ebp
push 0x410a20
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x14]
mov esi, dword [eax]
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x18], eax
call fcn.0040b134
mov ebx, eax
mov eax, dword [esi + 0xc]
mov edx, 6
call fcn.0040b214
test al, al
je 0x410a09
mov edx, dword [esi + 0xc]
lea eax, [esi + 0x16]
mov ecx, 6
call fcn.0040ca50
test al, al
jne 0x4109f8
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x16]
mov dword [eax], edx
mov dx, word [esi + 0x1a]
mov word [eax + 4], dx
test bl, bl
je 0x410a09
mov eax, dword [esi + 0xc]
mov edx, 6
call fcn.0040b2b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410a27
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_ExitProcess
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410a45
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_FormatMessageA
ret
cmp dword [ebp - 0x18], 0
je 0x410a6a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 0x18]
je 0x410a6a
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ecx, dword [ebp - 0x18]
call fcn.0040d314
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410a88
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetFileSize
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410ad0
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.00403b94
lea eax, [ebp - 8]
call fcn.00403b70
ret