Function at 0x53e040
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
push edi
lea edi, [ebp - 0x12c]
mov ecx, 0x4b
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp + 8]
push eax
call fcn.00532325
add esp, 4
test eax, eax
je 0x53e0ad
xor eax, eax
jmp 0x53e2c5
cmp dword [ebp + 0xc], 0
je 0x53e0bc
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
cmp dword [ebp + 0x10], 0
je 0x53e0cb
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
cmp dword [ebp + 0x14], 0
je 0x53e0da
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
push 0x79e060
mov eax, dword [ebp + 8]
push eax
call fcn.00532db6
add esp, 8
test eax, eax
jne 0x53e0f8
mov dword [ebp - 0x38], 0x4e20
jmp 0x53e0ff
mov dword [ebp - 0x38], 0
push str..exe
mov eax, dword [ebp + 8]
push eax
call fcn.00532e65
add esp, 4
push eax
call fcn.00534279
add esp, 8
test eax, eax
jne 0x53e12e
mov eax, dword [ebp + 8]
push eax
call fcn.005327df
add esp, 4
mov dword [ebp - 0x5c], eax
jmp 0x53e135
mov dword [ebp - 0x5c], 0
push 0
mov eax, dword [ebp - 0x38]
push eax
push 0
push SQLGetDiagRec
push 3
push 0
push 7
push closesocket
mov ecx, dword [ebp + 8]
push ecx
call fcn.00532dd4
add esp, 0x24
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x53e17b
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.00535fca
mov dword [ebp - 0x68], eax
xor eax, eax
jmp 0x53e2c5
mov esi, esp
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp esi, esp
call fcn.00535fca
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0xffffffff
jne 0x53e1a0
mov dword [ebp - 0x50], 0
mov esi, esp
push 0
push 0
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, esp
call fcn.00535fca
mov esi, esp
push 0
lea eax, [ebp - 0x44]
push eax
push 4
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, esp
call fcn.00535fca
test eax, eax
je 0x53e1e4
cmp dword [ebp - 0x44], 4
jae 0x53e20e
mov eax, dword [0x80800c]
add eax, 0x47
push eax
push str.e:userskerrydocuments_visual_studio_2010projectspaula__butchered__archive.c
push str.CalculateArchiveCheckSum
mov ecx, dword [ebp - 8]
push ecx
call fcn.00533ee6
mov dword [ebp - 8], 0
xor eax, eax
jmp 0x53e2c5
mov esi, esp
push 0
lea eax, [ebp - 0x44]
push eax
push 4
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, esp
call fcn.00535fca
test eax, eax
je 0x53e237
cmp dword [ebp - 0x44], 4
jae 0x53e25e
mov eax, dword [0x80800c]
add eax, 0x50
push eax
push str.e:userskerrydocuments_visual_studio_2010projectspaula__butchered__archive.c
push str.CalculateArchiveCheckSum
mov ecx, dword [ebp - 8]
push ecx
call fcn.00533ee6
mov dword [ebp - 8], 0
xor eax, eax
jmp 0x53e2c5
push 1
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00541740
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov eax, dword [0x80800c]
add eax, 0x5f
push eax
push str.e:userskerrydocuments_visual_studio_2010projectspaula__butchered__archive.c
push str.CalculateArchiveCheckSum
mov ecx, dword [ebp - 8]
push ecx
call fcn.00533ee6
mov dword [ebp - 8], 0
cmp dword [ebp + 0xc], 0
je 0x53e2a4
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
cmp dword [ebp + 0x10], 0
je 0x53e2b2
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
cmp dword [ebp + 0x14], 0
je 0x53e2c0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x53e2ec]
call fcn.0053491d
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0x12c
cmp ebp, esp
call fcn.00535fca
mov esp, ebp
pop ebp
ret