Function at 0x435c30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x520568
mov eax, dword fs:[0]
push eax
sub esp, 0x94
push ebx
push ebp
push esi
push edi
mov eax, dword [0x597f54]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [esp + 0xc4]
push eax
lea ecx, [esp + 0x18]
call fcn.00401534
xor ebx, ebx
push str.Downloading_file
lea ecx, [esp + 0x1c]
mov dword [esp + 0xb4], ebx
call fcn.00401534
mov eax, dword [ebp + 0x184]
cmp eax, ebx
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov byte [esp + 0xb0], 1
je 0x435cac
mov ecx, dword [eax + 0x20]
push ebx
push ebx
push 0x465
push ecx
call edi
cmp dword [ebp + 0x184], ebx
je 0x435d4a
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 0xc]
add eax, 1
push eax
call fcn.004b1a5e
mov ecx, dword [esp + 0x1c]
mov esi, eax
add esp, 4
mov edx, esi
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x435cd3
mov eax, dword [ebp + 0x184]
mov eax, dword [eax + 0x20]
push esi
push ebx
push 0x468
push eax
call edi
push esi
call fcn.004b1a59
add esp, 4
cmp dword [ebp + 0x184], ebx
je 0x435d4a
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
add eax, 1
push eax
call fcn.004b1a5e
mov ecx, dword [esp + 0x18]
mov esi, eax
add esp, 4
mov edx, esi
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x435d20
mov eax, dword [ebp + 0x184]
mov edx, dword [eax + 0x20]
push esi
push ebx
push 0x469
push edx
call edi
push esi
call fcn.004b1a59
add esp, 4
mov eax, dword [esp + 0xb8]
mov edi, str.https
mov esi, eax
mov ecx, 6
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x435de8
lea ebx, [edx + 1]
push str.RealLegal_WebCopy
lea ecx, [esp + 0x4c]
call fcn.00435b90
mov eax, dword [ebp + 0x188]
xor edi, edi
mov dword [esp + 0x38], vtable.CProgressWrap.0
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], vtable.CWebFileWriteStd.0
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov ecx, dword [ebp + 0x184]
mov eax, dword [esp + 0xbc]
neg ecx
sbb ecx, ecx
not ecx
lea edx, [esp + 0x38]
and ecx, edx
push ecx
push ebx
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0xbc], 3
call fcn.004ff8e0
test eax, eax
jne 0x435ead
mov esi, dword [esp + 0x64]
add ebp, 0x190
cmp esi, edi
jne 0x435e6d
jmp 0x435e7d
mov edi, str.http
mov esi, eax
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x435d6a
push eax
push str.Invalid_protocol_argument__s
add ebp, 0x190
push ebp
call fcn.00402fab
add esp, 0xc
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0xb0], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435e3b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0xb0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435e66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4362b8
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x435e72
sub eax, ecx
push eax
push esi
mov ecx, ebp
call fcn.00401452
lea ecx, [esp + 0x2c]
mov byte [esp + 0xb0], 2
call fcn.004ff4c0
lea ecx, [esp + 0x48]
mov byte [esp + 0xb0], 1
call fcn.004ff810
jmp 0x435e13
mov esi, dword [esp + 0xc8]
push esi
lea ecx, [esp + 0x30]
call fcn.004ff4e0
test eax, eax
jne 0x435ed9
push esi
push str.Failed_to_open__s_for_writing.
add ebp, 0x190
push ebp
call fcn.00402fab
add esp, 0xc
jmp 0x435e86
mov ecx, dword [esp + 0xc0]
push ecx
lea ecx, [esp + 0x20]
call fcn.00401534
lea edx, [esp + 0x14]
push edx
push eax
lea eax, [esp + 0x30]
mov bl, 4
push eax
mov byte [esp + 0xbc], bl
call fcn.0040acb6
add esp, 0xc
mov ecx, dword [ebp + 0x184]
mov eax, dword [eax]
neg ecx
sbb ecx, ecx
not ecx
lea edx, [esp + 0x38]
and ecx, edx
push ecx
lea ecx, [esp + 0x30]
push ecx
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0xbc], 5
call fcn.004ff9e0
test eax, eax
mov eax, dword [esp + 0x28]
sete byte [esp + 0x23]
add eax, 0xfffffff0
mov byte [esp + 0xb0], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x435f60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0xb0], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435f88
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x2c]
call fcn.004ff410
cmp byte [esp + 0x23], 0
je 0x435feb
mov ecx, dword [esp + 0x64]
push ecx
lea ecx, [ebp + 0x190]
call fcn.00401522
lea ecx, [esp + 0x2c]
mov byte [esp + 0xb0], 2
call fcn.004ff4c0
lea ecx, [esp + 0x48]
mov byte [esp + 0xb0], 1
call fcn.004ff810
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0xb0], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x435e2f
mov eax, dword [ebp + 0x184]
cmp eax, edi
je 0x436006
mov ecx, dword [eax + 0x20]
push edi
push edi
push 0x467
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp byte [ebp + 0x194], 0
je 0x43605a
push str.Operation_Canceled.
lea ecx, [ebp + 0x190]
call fcn.00401522
lea ecx, [esp + 0x2c]
mov byte [esp + 0xb0], 2
call fcn.004ff4c0
lea ecx, [esp + 0x48]
mov byte [esp + 0xb0], 1
call fcn.004ff810
lea ecx, [esp + 0x18]
call fcn.0040a724
lea ecx, [esp + 0x14]
call fcn.0040a724
xor eax, eax
jmp 0x4362b8
push 1
push esi
lea ecx, [esp + 0x7c]
call fcn.00402d1c
push esi
lea ecx, [esp + 0x28]
mov byte [esp + 0xb4], 6
call fcn.00401534
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 4]
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + ecx + 0x78]
mov byte [esp + 0xb4], 7
call fcn.004851e0
mov eax, dword [eax]
push 0x5329d0
push eax
call fcn.004e316c
add esp, 8
test eax, eax
lea ecx, [esp + 0x1c]
sete bl
call fcn.0040a724
test bl, bl
je 0x436116
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx - 0xc]
add eax, 0xfffffffd
push eax
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x2c]
call fcn.00402bb5
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0xb4], 8
call fcn.00402e5a
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb0], 7
call fcn.0040a724
lea ecx, [esp + 0x2c]
call fcn.004ff410
mov eax, dword [esp + 0x24]
push eax
push esi
lea ecx, [esp + 0x50]
call fcn.004ffc80
test eax, eax
jne 0x436116
mov dword [ebp + 0x44], 3
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0xcc]
push ecx
push ebx
mov ecx, ebp
call fcn.004320e0
mov edx, dword [esp + 0x24]
push edx
mov ecx, ebp
call fcn.004318c0
cmp eax, 1
jne 0x4361f2
push eax
push ebx
mov ecx, ebp
call fcn.00434ff0
mov edi, eax
push ebx
lea eax, [esp + 0x2c]
push eax
mov ecx, ebp
mov dword [esp + 0x24], edi
call fcn.00432040
mov esi, 1
cmp edi, esi
mov byte [esp + 0xb0], 9
jle 0x4361ca
lea esp, [esp]
push 8
call fcn.004b1a2e
add esp, 4
test eax, eax
je 0x436189
mov ecx, eax
call fcn.0042e130
mov edi, eax
jmp 0x43618b
xor edi, edi
lea ecx, [esp + 0x28]
push ecx
mov ecx, edi
call fcn.00402e5a
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0xa0]
lea edx, [esi + ebx]
push ecx
lea ecx, [ebp + 0x16c]
mov dword [edi + 4], esi
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], edi
call fcn.00431300
add dword [ebp + 0x58], 1
add esi, 1
cmp esi, dword [esp + 0x1c]
jl 0x436170
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0xb0], 7
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4361f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp + 0x184], 0
je 0x43620a
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x43620a
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0xb0], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x436232
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x80]
call fcn.0040290f
lea ecx, [esp + 0x2c]
mov byte [esp + 0xb0], 2
call fcn.004ff4c0
lea ecx, [esp + 0x48]
mov byte [esp + 0xb0], 1
call fcn.004ff810
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0xb0], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x436288
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0xb0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4362b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret 0x18