Function at 0x401b42
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
push edi
mov esi, ecx
push str.Downloader
mov dword [esp + 0x20], esi
call fcn.00472ae0
pop ecx
xor ecx, ecx
lea eax, [esi + 0xa4]
mov dword [esi + 0xc0], ecx
cmp dword [eax + 0x14], 0x10
jb 0x401b75
mov eax, dword [eax]
push ecx
push 0x80
push 2
push ecx
push 2
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0xd4], eax
cmp eax, 0xffffffff
jne 0x401ba6
mov dword [esi + 0xc0], 0x5a
jmp 0x401eed
cmp dword [esi + 0x80], 0x10
jb 0x401bb4
mov edi, dword [esi + 0x6c]
jmp 0x401bb7
lea edi, [esi + 0x6c]
fld qword [0x611820]
fstp qword [esp + 0x38]
call fcn.004754d0
mov ebx, eax
test ebx, ebx
jne 0x401c2a
push 0x5d
pop edi
push edi
push str.Failed_Error_d
push 0x15c
push 4
push dword [0x6470bc]
mov ebx, str.GetDownloadFileLength
mov edi, str.Downloader.cpp
call fcn.004750b0
add esp, 0x14
fld qword [esp + 0x38]
call fcn.005ac2d6
mov edi, edx
xor ebx, ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edi
cmp edi, ebx
jg 0x401ce7
jl 0x401c1b
cmp eax, ebx
ja 0x401ce7
mov dword [esi + 0xc0], 0x5b
jmp 0x401eed
push edi
push 0x2712
push ebx
call fcn.00475510
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x401ca6
push 0xa
push 0xd
push ebx
call fcn.00475510
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x401ca6
push 1
push 0x2a
push ebx
call fcn.00475510
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x401ca6
push 1
push 0x2c
push ebx
call fcn.00475510
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x401ca6
push ebx
call fcn.00475710
mov edi, eax
pop ecx
test edi, edi
jne 0x401ca6
lea eax, [esp + 0x10]
push eax
push 0x30000f
push ebx
call fcn.00475750
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x401ca6
fld qword [esp + 0x10]
fstp qword [esp + 0x38]
push ebx
call fcn.00475730
pop ecx
test edi, edi
jne 0x401bcf
fld qword [esp + 0x38]
push ecx
push ecx
fstp qword [esp]
push str.Success_Length_lf
push 0x158
push 2
push dword [0x6470bc]
mov ebx, str.GetDownloadFileLength
mov edi, str.Downloader.cpp
call fcn.004750b0
add esp, 0x18
jmp 0x401bf4
push ebx
push eax
push edi
push 4
push ebx
push dword [esi + 0xd4]
mov eax, edi
sar eax, 0x1f
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 0xd8], eax
cmp eax, ebx
jne 0x401d17
mov dword [esi + 0xc0], 0x5c
jmp 0x401eed
cmp edi, ebx
jl 0x401dfc
jg 0x401d2f
cmp dword [esp + 0x30], 0x4000000
jb 0x401dfc
push ebx
push 4
push edi
push dword [esp + 0x3c]
call fcn.005abb20
mov dword [esp + 0x28], eax
lea eax, [esi + 0xc4]
mov dword [esp + 0x2c], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
jmp 0x401d5a
mov esi, dword [esp + 0x1c]
xor ebx, ebx
push 0x58
call fcn.004a4d50
pop ecx
cmp eax, ebx
je 0x401d75
push dword [esp + 0xc]
mov ecx, esi
call fcn.00401098
mov edi, eax
jmp 0x401d77
xor edi, edi
push dword [esp + 0x2c]
xor esi, esi
push dword [esp + 0x2c]
mov dword [esp + 0x28], edi
push esi
push dword [esp + 0x18]
call fcn.005ac1a0
cmp dword [esp + 0xc], 3
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
jne 0x401db1
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
sub eax, 1
sbb ecx, ebx
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
jmp 0x401dd4
push dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
push dword [esp + 0x2c]
add eax, 1
adc esi, ebx
push esi
push eax
call fcn.005ac1a0
sub eax, 1
sbb edx, ebx
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], edx
mov esi, edi
call fcn.00401262
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x20]
call fcn.00402185
inc dword [esp + 0xc]
cmp dword [esp + 0xc], 4
jb 0x401d54
jmp 0x401ec9
lea eax, [esi + 0xc4]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x10], eax
jmp 0x401e1e
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x34]
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x30]
mov eax, 0x1000000
sub ebx, eax
sbb edi, 0
mov dword [esp + 0x20], eax
test edi, edi
jg 0x401e4e
jl 0x401e3e
test ebx, ebx
jae 0x401e4e
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x24], eax
push 0x58
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], edi
call fcn.004a4d50
pop ecx
test eax, eax
je 0x401e73
push dword [esp + 0xc]
mov ecx, esi
call fcn.00401098
inc dword [esp + 0xc]
jmp 0x401e75
xor eax, eax
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [eax + 0x10], ecx
add ecx, dword [esp + 0x20]
mov dword [eax + 0x14], edx
adc edx, dword [esp + 0x24]
mov dword [esp + 0x38], ecx
sub ecx, 1
mov dword [esp + 0x3c], edx
sbb edx, 0
mov dword [eax + 0x18], ecx
mov esi, eax
mov dword [esp + 0x28], eax
mov dword [eax + 0x1c], edx
call fcn.00401262
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x28]
call fcn.00402185
test edi, edi
jg 0x401e14
jl 0x401ec9
test ebx, ebx
jne 0x401e14
mov eax, dword [esp + 0x10]
mov esi, dword [eax]
mov edi, dword [esp + 0x1c]
jmp 0x401ee3
mov eax, dword [esi]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
add esi, 4
cmp esi, dword [edi + 0xc8]
jne 0x401ed5
mov esi, edi
mov ecx, esi
call fcn.00401efd
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret