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

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x437245
mov eax, dword [ebp - 4]
add esp, 0xffffff80
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x4080], ebx
mov dword [ebp - 0x4084], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x14], ecx
mov esi, edx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
call fcn.00403e18
xor eax, eax
push ebp
push 0x437521
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 3
mov edx, 0x80000000
mov eax, esi
call fcn.00658f04
mov edi, eax
cmp edi, 0xffffffff
jne 0x4372be
mov eax, dword [0x66eb48]
mov eax, dword [eax]
mov edx, esi
call fcn.00620080
xor ebx, ebx
mov eax, dword [ebp - 8]
mov byte [eax + 0xd], 1
jmp 0x4374ee
lea eax, [ebp - 0x64]
push eax
push edi
call sub.kernel32.dll_GetFileInformationByHandle
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x50]
push eax
call sub.kernel32.dll_FileTimeToLocalFileTime
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xe]
push eax
lea eax, [ebp - 0x1c]
push eax
call sub.kernel32.dll_FileTimeToDosDateTime
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x44]
inc eax
je 0x43738a
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x14]
call fcn.0065530c
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x14]
call fcn.006552dc
mov eax, dword [ebp - 0x20]
call fcn.00403aa8
push eax
mov eax, dword [ebp - 0x24]
call fcn.00403aa8
pop edx
sub edx, eax
lea eax, [ebp - 0x20]
call fcn.00403dd4
mov ebx, 1
inc ebx
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x407c], eax
mov byte [ebp - 0x4078], 0xf
mov dword [ebp - 0x4074], ebx
mov byte [ebp - 0x4070], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x406c], eax
mov byte [ebp - 0x4068], 0xf
lea edx, [ebp - 0x407c]
mov eax, 0x437534
mov ecx, 2
call fcn.00655a70
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x44]
inc eax
jne 0x437332
push ebp
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
call fcn.00436df4
pop ecx
mov eax, esi
mov edx, dword [0x672554]
call fcn.00403bc0
jne 0x4373db
push ebp
mov eax, dword [0x672550]
mov edx, dword [eax + 8]
mov eax, dword [0x672550]
mov eax, dword [eax + 4]
call fcn.00436ffc
pop ecx
mov ebx, eax
mov eax, 0x672554
call fcn.00403880
mov eax, dword [0x672550]
call fcn.004028c0
jmp 0x43749f
mov bl, 1
push 0
push edi
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0x28], eax
cmp byte [0x65f200], 0
je 0x43742c
lea edx, [ebp - 0x4084]
mov eax, dword [ebp - 0x14]
call fcn.00506bc4
mov edx, dword [ebp - 0x4084]
lea ecx, [ebp - 0x4080]
mov eax, dword [0x66eaf4]
mov eax, dword [eax]
call fcn.00655b64
mov eax, dword [ebp - 0x4080]
push eax
call fcn.00506a54
mov edx, dword [ebp - 0x28]
pop ecx
call fcn.00503ed0
xor esi, esi
cmp esi, dword [ebp - 0x28]
jge 0x43749f
mov eax, dword [ebp - 0x28]
sub eax, esi
cmp eax, 0x4000
jle 0x437448
mov dword [ebp - 0x2c], 0x4000
jmp 0x43744b
mov dword [ebp - 0x2c], eax
push 0
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x4064]
push eax
push edi
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x437496
push ebp
lea eax, [ebp - 0x4064]
mov edx, dword [ebp - 0x30]
call fcn.00436ffc
pop ecx
test al, al
je 0x437496
add esi, dword [ebp - 0x30]
cmp byte [0x65f200], 0
je 0x43749a
mov eax, dword [0x66fc38]
mov eax, dword [eax]
mov edx, esi
call fcn.004ff60c
jmp 0x43749a
xor ebx, ebx
jmp 0x43749f
cmp esi, dword [ebp - 0x28]
jl 0x437433
push ebp
call fcn.004370d4
pop ecx
and bl, al
push edi
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
cmp byte [eax + 0xd], 0
jne 0x4374bf
test bl, bl
je 0x4374bf
xor eax, eax
jmp 0x4374c1
mov al, 1
mov edx, dword [ebp - 8]
mov byte [edx + 0xd], al
test bl, bl
je 0x4374d9
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x30]
cmp byte [0x65f200], 0
je 0x4374ee
call fcn.00506a54
mov edx, ebx
call fcn.00503f2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x437528
lea eax, [ebp - 0x4084]
mov edx, 2
call fcn.00403298
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00403898
lea eax, [ebp - 0x14]
call fcn.00403880
ret