Function at 0x436300
Capabilities:
Check for time delay via gettickcount
Check if file exists
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x4b1120]
xor eax, ebp
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp + 0x28]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x20]
push edx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
push str.ExtractPieceOfFile____OffSet_I64u_FileSize_I64u_FileTo_s
call fcn.00437970
add esp, 0x18
cmp dword [0x4c9c48], 0
jne 0x436828
cmp dword [ebp + 8], 0
jne 0x4363aa
cmp dword [ebp + 0xc], 0
je 0x4363aa
push 0
push 0x80
push 3
push 0
push 1
push closesocket
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
jmp 0x4363b0
mov edx, dword [ebp + 8]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0xffffffff
jne 0x4363cd
push 0
push 0x4982d0
call fcn.0040e620
add esp, 8
mov dword [ebp - 0x20], eax
jmp 0x436828
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x10], 0
je 0x436436
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x43642f
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x436426
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x3c], ecx
jmp 0x43642d
mov dword [ebp - 0x10], 0
jmp 0x436436
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], 0
je 0x4364a4
push 2
push 0
push 0
push 0
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0040d690
add esp, 0x14
test eax, eax
jne 0x43646c
push 0
push 0x498004
call fcn.0040e620
add esp, 8
mov dword [ebp - 0x10], 0
jmp 0x4364a4
push 0
push 0
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x14]
adc ecx, dword [ebp - 0x14]
push ecx
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.0040d690
add esp, 0x14
test eax, eax
jne 0x4364a4
push 0
push 0x4980dc
call fcn.0040e620
add esp, 8
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], 0
jne 0x436594
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x1c], 0
je 0x4364cc
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x24], 0
je 0x436525
xor ecx, ecx
mov word [ebp - 0x250], cx
push 0x206
push 0
lea edx, [ebp - 0x24e]
push edx
call fcn.00447660
add esp, 0xc
mov eax, dword [ebp + 0x20]
push eax
push 0x104
lea ecx, [ebp - 0x250]
push ecx
call fcn.0044a00d
add esp, 0xc
lea edx, [ebp - 0x250]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x250]
push eax
call fcn.0040cdb0
add esp, 4
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov ecx, dword [ebp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x436561
push 0
push 0x4982e8
call fcn.0040e620
add esp, 8
mov dword [ebp - 0x20], eax
jmp 0x436828
push 0
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040d690
add esp, 0x14
test eax, eax
jne 0x436594
push 0
push str.SetFileSeek64
call fcn.0040e620
add esp, 8
mov dword [ebp - 0x20], eax
jmp 0x436828
mov edx, dword [ebp + 0x18]
sub edx, dword [ebp - 0x40]
mov eax, dword [ebp + 0x1c]
sbb eax, dword [ebp - 0x3c]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], eax
mov ecx, dword [0x4b3500]
or ecx, dword [0x4b3504]
jne 0x4365c6
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, 0x4b34a8
call fcn.0040fb10
mov ecx, dword [0x4b3520]
add ecx, dword [ebp - 0x40]
mov edx, dword [0x4b3524]
adc edx, dword [ebp - 0x3c]
mov dword [0x4b3520], ecx
mov dword [0x4b3524], edx
mov eax, dword [0x4b3524]
push eax
mov ecx, dword [0x4b3520]
push ecx
mov ecx, 0x4b34a8
call fcn.0040fc60
mov dword [ebp - 0x38], 0x100000
mov edx, dword [ebp - 0x30]
or edx, dword [ebp - 0x2c]
je 0x436639
mov eax, dword [ebp - 0x38]
xor ecx, ecx
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x260], ecx
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x260]
ja 0x436639
jb 0x436633
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x264]
jae 0x436639
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
xor ecx, ecx
mov eax, dword [ebp - 0x38]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044763a
add esp, 4
mov dword [ebp - 0x258], eax
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x43681a
push 4
push 0
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00447660
add esp, 0xc
cmp dword [ebp - 0x1c], 0xffffffff
je 0x4367ee
cmp dword [0x4c9c48], 0
jne 0x4367ee
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x254], eax
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0x2c], 0
ja 0x4366b8
cmp dword [ebp - 0x30], 0
jbe 0x4367ae
cmp dword [ebp - 0xc], 0
je 0x4367ae
cmp dword [0x4c9c48], 0
jne 0x4367ae
mov edx, dword [ebp - 0x38]
xor eax, eax
mov dword [ebp - 0x26c], edx
mov dword [ebp - 0x268], eax
mov ecx, dword [ebp - 0x268]
cmp ecx, dword [ebp - 0x2c]
jb 0x4366fe
ja 0x4366f8
mov edx, dword [ebp - 0x26c]
cmp edx, dword [ebp - 0x30]
jbe 0x4366fe
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
push 0
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4367a9
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov edx, dword [ebp - 0x30]
sub edx, eax
mov eax, dword [ebp - 0x2c]
sbb eax, ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 4]
push edx
push str.ExtractPieceOfFile____BytesWriten_u_BytesRead_u_BytesToCopy_I64u_Result_d
call fcn.00437970
add esp, 0x18
mov eax, dword [ebp - 4]
xor ecx, ecx
add eax, dword [0x4b3520]
mov edx, dword [0x4b3524]
adc edx, ecx
mov dword [0x4b3520], eax
mov dword [0x4b3524], edx
mov eax, dword [0x4b3524]
push eax
mov ecx, dword [0x4b3520]
push ecx
mov ecx, 0x4b34a8
call fcn.0040fc60
jmp 0x4366a8
cmp dword [ebp - 0xc], 0
jne 0x4367bd
mov dword [ebp - 0x20], 0x17
jmp 0x4367d2
mov edx, dword [ebp + 0x20]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4367d2
mov dword [ebp - 0x20], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x254]
push eax
push str.ExtractPieceOfFile____Extract_done_in__d_ms
call fcn.00437970
add esp, 8
jmp 0x436800
push 0
push 0x498418
call fcn.0040e620
add esp, 8
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x25c], eax
mov ecx, dword [ebp - 0x25c]
push ecx
call fcn.0044a25c
add esp, 4
jmp 0x436821
mov dword [ebp - 0x20], 8
jmp 0x436828
cmp dword [ebp - 0x1c], 0
je 0x436838
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], 0
jne 0x43684e
cmp dword [ebp - 8], 0
je 0x43684e
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4c9c48], 0
je 0x43685e
mov eax, 0x4c7
jmp 0x436872
mov ecx, dword [ebp - 0x20]
push ecx
push str.ExtractPieceOfFile____End__d_
call fcn.00437970
add esp, 8
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x44]
xor ecx, ebp
call fcn.00447645
mov esp, ebp
pop ebp
ret