Function at 0x45f990
Capabilities:
Check for time delay via gettickcount
Read data from internet
Receive data

Disassembly:
push ebp
lea ebp, [esp - 0x50]
sub esp, 0x50
push 0xffffffffffffffff
push 0x4dcd83
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
push ebx
push esi
push edi
mov eax, dword [0x513330]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0x58]
lea edi, [esi + 4]
push str.____________________Entrance____________________
lea ecx, [ebp + 0x48]
mov eax, edi
push ecx
push eax
mov dword [ebp + 0x34], edi
mov dword [ebp + 0x4c], eax
mov dword [ebp + 0x48], str.DownloadRangeToFile
call fcn.00471a00
mov edx, dword [ebp + 0x5c]
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov eax, dword [edx]
push eax
push str.strRequestURL_s
lea ecx, [ebp + 0x48]
push ecx
push edi
call fcn.004719c0
mov edx, dword [ebp + 0x78]
mov eax, dword [edx]
mov ebx, dword [ebp + 0x70]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
add esp, 0x1c
push eax
mov eax, dword [ebp + 0x6c]
push ecx
mov ecx, dword [ebp + 0x68]
push edx
mov edx, dword [ebp + 0x64]
push eax
mov eax, dword [ebp + 0x60]
push ecx
push edx
push eax
push str.ulStartByte_lld_ulEndByte_lld_ulFileOffset_lld_fileOutput_lld
lea ecx, [ebp + 0x48]
push ecx
push edi
call fcn.004719c0
add esp, 0x28
call fcn.0045d9f0
test al, al
je 0x45fa6b
push str.______________________Exit______________________
lea edx, [ebp + 0x48]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x4c]
push edx
push eax
call fcn.00471a00
add esp, 0xc
mov eax, 5
jmp 0x46051c
cmp dword [esi + 0x60], 0
jne 0x45fafd
mov ecx, dword [ebp + 0x7c]
push 0
push ecx
mov ecx, esi
call fcn.0045e280
mov dword [ebp + 0x30], eax
test eax, eax
je 0x45fafd
lea edx, [ebp - 0x1c]
push edx
mov ebx, eax
call fcn.00476eb0
add esp, 4
mov ecx, dword [ebp + 0x7c]
mov byte [ebp - 4], 2
mov eax, dword [eax]
mov edx, dword [ecx]
push eax
push edx
push str.this__InternetOpen_bStop_d__returned_err_s_
lea eax, [ebp + 0x48]
push eax
push edi
call fcn.00471980
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45fad9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.______________________Exit______________________
lea ecx, [ebp + 0x48]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x4c]
push ecx
push edx
call fcn.00471a00
mov eax, dword [ebp + 0x30]
add esp, 0xc
jmp 0x46051c
mov eax, dword [ebp + 0x7c]
mov ecx, dword [eax]
test ecx, ecx
je 0x45fb29
push str.______________________Exit______________________
lea edx, [ebp + 0x48]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x4c]
push edx
push eax
call fcn.00471a00
add esp, 0xc
xor eax, eax
jmp 0x46051c
lea ecx, [ebp + 0x40]
push ecx
mov ecx, 0x4f23a8
call fcn.00405a00
mov byte [ebp - 4], 3
mov edx, dword [esi + 0x54]
cmp dword [edx - 0xc], 0
je 0x45fbec
mov edx, str.POST
lea edi, [ebp + 0x40]
call fcn.00405c20
lea eax, [ebp + 0x20]
push eax
mov ecx, str.content_type
call fcn.00405a00
lea ecx, [ebp + 0x1c]
push ecx
mov ecx, str.text_xml
mov byte [ebp - 4], 4
call fcn.00405a00
mov eax, dword [ebp + 0x58]
lea edx, [ebp + 0x1c]
push edx
push eax
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 5
call fcn.0045d550
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x20]
push ecx
mov ecx, dword [ebp + 0x34]
push edx
push str.this__AddSendHeaderValue__s___s__
lea eax, [ebp + 0x48]
push eax
push ecx
call fcn.004719c0
mov byte [ebp - 4], 4
mov eax, dword [ebp + 0x1c]
add eax, 0xfffffff0
add esp, 0x14
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45fbc9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45fbec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp + 0x68]
mov edi, dword [ebp + 0x6c]
mov eax, esi
sub eax, dword [ebp + 0x60]
mov ecx, edi
sbb ecx, dword [ebp + 0x64]
mov dword [ebp + 0x2c], eax
or eax, ecx
mov dword [ebp + 0x30], ecx
je 0x45fd0e
mov edx, dword [0x51856c]
mov eax, dword [edx + 0xc]
mov ecx, 0x51856c
mov byte [ebp + 0x3b], 1
call eax
add eax, 0x10
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 0x64]
mov edx, dword [ebp + 0x60]
push edi
push esi
push ecx
push edx
push str.bytes_lld__lld
lea edi, [ebp + 0x10]
mov byte [ebp - 4], 6
call fcn.0040e4a0
add esp, 0x14
lea eax, [ebp + 0xc]
push eax
mov ecx, str.Range
call fcn.00405a00
mov esi, dword [ebp + 0x58]
mov ecx, edi
push ecx
push esi
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 7
call fcn.0045d550
mov byte [ebp - 4], 6
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45fc86
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp + 0x10]
mov edx, dword [ebp + 0x34]
push edi
push str.AddSendHeaderValue_HTTP_RANGE___s__
lea ecx, [ebp + 0x48]
push ecx
push edx
call fcn.004719c0
lea eax, [edi - 0x10]
add esp, 0x10
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45fcbf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 0x7c]
mov edx, dword [ecx]
test edx, edx
je 0x45fd17
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45fceb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.______________________Exit______________________
lea ecx, [ebp + 0x48]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x4c]
push ecx
push edx
call fcn.00471a00
add esp, 0xc
xor eax, eax
jmp 0x46051c
mov esi, dword [ebp + 0x58]
mov byte [ebp + 0x3b], 0
jmp 0x45fcbf
mov dword [ebp + 0x44], 0
mov byte [ebp - 4], 8
mov eax, dword [0x51856c]
mov edx, dword [eax + 0xc]
mov ecx, 0x51856c
call edx
add eax, 0x10
mov dword [ebp + 0x3c], eax
mov eax, dword [ebp + 0x7c]
push 0
push eax
mov eax, dword [ebp + 0x5c]
lea ecx, [ebp + 0x44]
push ecx
lea edx, [ebp + 0x40]
push edx
push eax
push esi
mov byte [ebp - 4], 9
call fcn.0045e500
mov edi, eax
test edi, edi
je 0x45fdd6
lea ecx, [ebp - 0x28]
push ecx
mov ebx, edi
call fcn.00476eb0
add esp, 4
mov byte [ebp - 4], 0xa
mov edx, dword [eax]
mov eax, dword [ebp + 0x7c]
mov ecx, dword [eax]
push edx
mov edx, dword [ebp + 0x40]
push ecx
mov ecx, dword [ebp + 0x34]
push edx
push str.this__SendRequest_strRequestURL___s___d__returned_err_s_
lea eax, [ebp + 0x48]
push eax
push ecx
call fcn.00471980
add esp, 0x18
lea ecx, [ebp - 0x28]
call fcn.00405f50
lea ecx, [ebp + 0x3c]
call fcn.00405f50
mov eax, dword [ebp + 0x44]
test eax, eax
je 0x45fdab
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp + 0x40]
call fcn.00405f50
push str.______________________Exit______________________
lea edx, [ebp + 0x48]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x4c]
push edx
push eax
call fcn.00471a00
add esp, 0xc
mov eax, edi
jmp 0x46051c
mov ecx, dword [ebp + 0x7c]
mov edx, dword [ecx]
test edx, edx
jne 0x4601db
mov eax, dword [ebp + 0x44]
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x24]
push edx
mov ecx, esi
mov dword [ebp - 0x18], eax
call fcn.0045cbb0
lea edi, [esi + 0x58]
mov byte [ebp - 4], 0xb
call fcn.004082a0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 9
call fcn.00405f50
cmp byte [ebp + 0x3b], 0
mov ecx, 0x4f3164
jne 0x45fe20
mov ecx, 0x4f2698
push edi
call fcn.0040b7e0
test eax, eax
je 0x45febf
push edi
mov ecx, 0x4f2698
call fcn.0040b7e0
mov edx, dword [ebp + 0x34]
test eax, eax
mov eax, dword [edi]
push eax
push str.GetStatusCode___s
lea ecx, [ebp + 0x48]
push ecx
push edx
jne 0x45fe86
call fcn.00471980
add esp, 0x10
lea ecx, [ebp + 0x3c]
call fcn.00405f50
lea esi, [ebp + 0x44]
call fcn.0047e3d0
lea ecx, [ebp + 0x40]
call fcn.00405f50
lea eax, [ebp + 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.0042e9b0
mov eax, 0xf
jmp 0x46051c
call fcn.00471980
add esp, 0x10
lea ecx, [ebp + 0x3c]
call fcn.00405f50
lea esi, [ebp + 0x44]
call fcn.0047e3d0
lea ecx, [ebp + 0x40]
call fcn.00405f50
lea eax, [ebp + 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.0042e9b0
mov eax, 0xb
jmp 0x46051c
mov eax, dword [ebp + 0x44]
lea ecx, [ebp - 0x20]
push ecx
mov edi, esi
mov dword [ebp - 0x20], eax
call fcn.0045ce20
mov edx, dword [ebp + 0x7c]
mov eax, dword [edx]
test eax, eax
jne 0x4601db
lea ecx, [ebp - 0x14]
push ecx
mov ecx, str.content_length
call fcn.00405a00
mov esi, dword [ebp + 0x58]
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0xf0]
add esi, 0x64
push eax
call fcn.00460a10
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x2c], edx
call fcn.00405f50
mov eax, dword [esi + 0x18]
mov ecx, dword [esi]
lea esi, [ebp - 0x44]
lea edi, [ebp - 0x30]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], ecx
call fcn.00483580
test al, al
je 0x45ff40
mov esi, edi
call fcn.00483a00
add eax, 4
lea edi, [ebp + 0x3c]
call fcn.004082a0
cmp byte [ebp + 0x3b], 0
je 0x460098
lea edx, [ebp + 8]
push edx
mov ecx, str.content_range
call fcn.00405a00
mov esi, dword [ebp + 0x58]
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xe8]
push ecx
add esi, 0x64
call fcn.00460a10
mov edx, dword [eax]
mov eax, dword [eax + 4]
lea ecx, [ebp + 8]
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], eax
call fcn.00405f50
mov ecx, dword [esi + 0x18]
mov edx, dword [esi]
lea esi, [ebp - 0x4c]
lea edi, [ebp - 0x3c]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], edx
call fcn.00483580
test al, al
je 0x460081
mov esi, edi
call fcn.00483a00
add eax, 4
mov eax, dword [eax]
sub eax, 0x10
call fcn.00408230
lea esi, [eax + 0x10]
mov dword [ebp - 0x34], esi
xor eax, eax
mov byte [ebp - 4], 0xc
mov dword [ebp], eax
mov dword [ebp + 4], eax
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x18], eax
lea eax, [ebp]
push eax
push ecx
lea eax, [esi - 0x10]
lea ebx, [ebp + 0x14]
mov dword [ebp + 0x5c], esp
mov edi, esp
call fcn.00408230
add eax, 0x10
mov dword [edi], eax
call fcn.004798a0
mov ecx, dword [ebp]
mov edx, dword [ebp + 0x60]
mov eax, dword [ebp + 4]
add esp, 8
cmp edx, ecx
jne 0x460043
cmp dword [ebp + 0x64], eax
jne 0x460043
mov edi, dword [ebp + 0x68]
cmp edi, dword [ebp + 0x14]
jne 0x460043
mov edi, dword [ebp + 0x18]
cmp dword [ebp + 0x6c], edi
jne 0x460043
mov edx, dword [ebp + 0x14]
push edi
push edx
mov edx, dword [ebp + 0x34]
push eax
mov eax, dword [ebp + 0x3c]
push ecx
push eax
push str.Using_ranges._strContentLength___s_ulRespStart_lld__ulRespEnd_lld
lea ecx, [ebp + 0x48]
push ecx
push edx
call fcn.00471a00
add esp, 0x20
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 9
call fcn.00405f50
mov ebx, dword [ebp + 0x70]
jmp 0x4600e4
mov edi, dword [ebp + 0x6c]
push edi
mov edi, dword [ebp + 0x68]
push edi
mov edi, dword [ebp + 0x64]
push edi
push edx
mov edx, dword [ebp + 0x18]
push edx
mov edx, dword [ebp + 0x14]
push edx
push eax
push ecx
mov ecx, dword [ebp + 0x34]
push esi
push str.GetStartEndFromHeaders_strRange_s__ulRespStart_lld__ulRespEnd_lld__but_we_asked_for__lld_____lld
lea eax, [ebp + 0x48]
push eax
push ecx
call fcn.00471980
add esp, 0x30
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 9
call fcn.00405f50
mov ebx, dword [ebp + 0x70]
jmp 0x4600e4
mov eax, dword [ebp + 0x34]
push str.No_content_range_in_response_header.
lea edx, [ebp + 0x48]
push edx
push eax
call fcn.00471980
add esp, 0xc
jmp 0x4600e4
mov esi, dword [ebp + 0x3c]
mov edx, dword [ebp + 0x34]
push esi
push str.Not_using_ranges._strContentLength___s
lea ecx, [ebp + 0x48]
push ecx
push edx
call fcn.00471a00
add esp, 0x10
push esi
call fcn.004a5cc8
mov ecx, dword [ebp + 0x74]
mov esi, edx
add esp, 4
mov edi, eax
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
push edi
mov dword [ebp + 0x2c], edi
mov dword [ebp + 0x30], esi
call edx
test esi, esi
ja 0x4600d8
test edi, edi
jbe 0x4600e4
add edi, 0xffffffff
adc esi, 0xffffffff
mov dword [ebp + 0x2c], edi
mov dword [ebp + 0x30], esi
push 0x1000
call fcn.004a3368
mov edi, eax
add esp, 4
mov dword [ebp + 0x28], edi
mov ecx, dword [ebp + 0x74]
mov byte [ebp - 4], 0xd
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
push edx
push eax
lea esi, [ebp - 0x108]
call fcn.004531c0
xor eax, eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x74]
mov esi, dword [eax]
mov dword [ebp - 0x9c], 0x28
mov dword [ebp - 0x84], 0x1000
mov dword [ebp - 0x88], edi
add esi, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 0x74]
mov edx, dword [esi]
push eax
call edx
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
xor eax, eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x74], 0x28
mov dword [ebp - 0x5c], 0x1000
mov byte [ebp + 0x5f], al
mov byte [ebp + 0x73], 1
mov dword [ebp + 0x68], ecx
mov dword [ebp + 0x6c], edx
mov dword [ebp + 0x64], 1
mov dword [ebp + 0x24], eax
xor edi, edi
lea esp, [esp]
mov eax, dword [ebp + 0x7c]
fldz
mov ecx, dword [eax]
xor esi, esi
test ecx, ecx
je 0x460209
mov edx, dword [ebp + 0x28]
fstp st(0)
push edx
call fcn.004a529a
add esp, 4
lea ecx, [ebp + 0x3c]
call fcn.00405f50
lea esi, [ebp + 0x44]
call fcn.0047e3d0
lea ecx, [ebp + 0x40]
call fcn.00405f50
lea eax, [ebp + 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.0042e9b0
xor eax, eax
jmp 0x46051c
mov eax, dword [ebp + 0x74]
fst qword [ebp - 0xc8]
mov dword [ebp - 0xe0], eax
fstp qword [ebp - 0xc0]
mov eax, dword [ebp + 0x64]
lea ecx, [ebp + 0x24]
lea edx, [ebp - 0x108]
mov dword [ebp + 0x24], edi
mov dword [ebp - 0xdc], ecx
mov dword [ebp - 0xd8], edi
mov dword [ebp - 0xd4], edx
mov dword [ebp - 0xd0], edi
mov dword [ebp - 0xcc], edi
mov dword [ebp - 0xb8], eax
cmp byte [ebp + 0x5f], 0
mov byte [ebp - 4], 0xe
jne 0x46027a
mov edx, dword [ebp + 0x44]
push edi
push 4
lea ecx, [ebp - 0x9c]
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetReadFileExW]
mov esi, eax
mov eax, dword [ebp - 0x84]
mov dword [ebp + 0x24], eax
mov ecx, dword [ebp + 0x7c]
mov edx, dword [ecx]
test edx, edx
je 0x4602a1
mov ecx, dword [ebp + 0x58]
push str.Stop_requested.
lea eax, [ebp + 0x48]
push eax
add ecx, 4
push ecx
mov dword [ebp - 0xe0], edi
call fcn.004719c0
add esp, 0xc
mov edx, dword [ebp + 0x7c]
mov eax, dword [edx]
test eax, eax
je 0x4602c2
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 0xd
call fcn.004769e0
mov ecx, dword [ebp + 0x28]
push ecx
jmp 0x4601d3
cmp byte [ebp + 0x73], 0
je 0x4602e8
cmp esi, edi
jne 0x4602e8
mov eax, dword [ebp + 0x58]
push str.Switch_InternetReadFileEx_to_ASCII_version.
lea edx, [ebp + 0x48]
push edx
add eax, 4
push eax
mov byte [ebp + 0x5f], 1
call fcn.00471980
add esp, 0xc
cmp byte [ebp + 0x5f], 0
je 0x460307
mov edx, dword [ebp + 0x44]
push edi
push 4
lea ecx, [ebp - 0x74]
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetReadFileExA]
mov esi, eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp + 0x24], eax
lea ecx, [ebp - 0xe0]
mov byte [ebp + 0x73], 0
mov byte [ebp - 4], 0xd
call fcn.004769e0
cmp esi, edi
jne 0x460391
mov ecx, dword [ebp + 0x6c]
mov edx, dword [ebp + 0x68]
mov eax, dword [ebx + 4]
push ecx
mov ecx, dword [ebx]
push edx
mov edx, dword [ebp + 0x30]
push eax
mov eax, dword [ebp + 0x2c]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0x58]
push eax
push str.InternetReadFileEx_Failed_last_error___d._ulTotalBytesToRead_lld_ulFileOffset_lld_ulStartOffset_lld
lea ecx, [ebp + 0x48]
push ecx
add edx, 4
push edx
call fcn.00471980
mov eax, dword [ebp + 0x28]
add esp, 0x28
push eax
call fcn.004a529a
add esp, 4
lea ecx, [ebp + 0x3c]
call fcn.00405f50
lea esi, [ebp + 0x44]
call fcn.0047e3d0
lea ecx, [ebp + 0x40]
call fcn.00405f50
lea eax, [ebp + 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.0042e9b0
mov eax, 0xc
jmp 0x46051c
mov ecx, dword [ebp + 0x7c]
mov edx, dword [ecx]
mov dword [ebp + 0x64], edi
test edx, edx
jne 0x4604e1
cmp dword [ebp + 0x24], edi
je 0x46044b
mov esi, dword [ebx]
mov edx, dword [ebx + 4]
mov eax, esi
mov cl, 0x20
call fcn.004cce60
mov ecx, dword [ebp + 0x78]
mov dword [ebp - 0xa8], esi
mov esi, dword [ebp + 0x28]
mov dword [ebp - 0xa4], eax
push ecx
mov ecx, dword [ebp + 0x24]
lea eax, [ebp - 0xb0]
mov edx, esi
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xa0], edi
call fcn.0045c000
test eax, eax
jge 0x460443
mov eax, dword [ebp + 0x58]
push str.Write_to_fileOutput_Failed.
lea edx, [ebp + 0x48]
push edx
add eax, 4
push eax
call fcn.00471980
add esp, 0xc
push esi
call fcn.004a529a
add esp, 4
lea ecx, [ebp + 0x3c]
call fcn.00405f50
lea esi, [ebp + 0x44]
call fcn.0047e3d0
lea ecx, [ebp + 0x40]
call fcn.00405f50
lea eax, [ebp + 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.0042e9b0
mov eax, 0xe
jmp 0x46051c
mov ecx, dword [ebp + 0x24]
add dword [ebx], ecx
adc dword [ebx + 4], edi
mov ecx, dword [ebx]
sub ecx, dword [ebp + 0x68]
mov eax, dword [ebx + 4]
sbb eax, dword [ebp + 0x6c]
mov edx, dword [ebp + 0x30]
cmp eax, edx
ja 0x460471
jb 0x460464
cmp ecx, dword [ebp + 0x2c]
ja 0x460471
mov eax, dword [ebp + 0x7c]
mov ecx, dword [eax]
test ecx, ecx
je 0x4601c0
mov eax, dword [ebp + 0x7c]
mov ecx, dword [eax]
test ecx, ecx
jne 0x4604e1
mov eax, dword [ebp + 0x2c]
or eax, edx
je 0x4604d7
mov ecx, dword [ebx]
sub ecx, dword [ebp + 0x68]
mov esi, dword [ebx + 4]
sbb esi, dword [ebp + 0x6c]
mov eax, dword [ebp + 0x2c]
mov edx, dword [ebp + 0x30]
add eax, 1
adc edx, edi
cmp eax, ecx
jne 0x46049f
cmp edx, esi
je 0x4604d7
mov ecx, dword [ebp + 0x6c]
mov eax, dword [ebp + 0x68]
mov edx, dword [ebp + 0x2c]
push ecx
push eax
push ecx
push eax
mov dword [ebx + 4], ecx
mov ecx, dword [ebp + 0x30]
push ecx
mov ecx, dword [ebp + 0x58]
push edx
mov dword [ebx], eax
push str.Wrong_number_of_bytes_read.__ulTotalBytesToRead_lld__1____ulFileOffset_lld___ulStartOffset_lld
lea eax, [ebp + 0x48]
push eax
add ecx, 4
push ecx
call fcn.00471980
mov edx, dword [ebp + 0x28]
add esp, 0x24
push edx
jmp 0x460358
mov ecx, dword [ebp + 0x74]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [ebp + 0x28]
push eax
jmp 0x4601d3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x50
mov esp, ebp
pop ebp
ret 0x28