Function at 0x4052a0
Capabilities:
Access peb ldr_data
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ed7f
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x44206c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 0xc]
mov byte [edi], al
mov dword [edi + 8], 0
mov dword [edi + 4], vtable.WinHTTPWrappers::CSession.0
lea ecx, [edi + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], ecx
mov dword [ecx + 4], 0
mov dword [ecx], vtable.WinHTTPWrappers::CConnection.0
lea ebx, [edi + 0x14]
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
lea ecx, [edi + 0x20]
mov dword [ecx], 0
mov dword [ebp - 0x1c], ecx
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 3
push eax
mov dword [ebp - 0x34], ecx
call fcn.00404f00
push 0x38
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 4
push 0
push eax
mov dword [ebp - 0x7c], 0x3c
call fcn.00416710
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x7c]
add esp, 0xc
mov dword [ebp - 0x74], 0xffffffff
mov dword [ebp - 0x68], 0xffffffff
mov dword [ebp - 0x4c], 0xffffffff
mov dword [ebp - 0x44], 0xffffffff
push eax
push 0
push 0
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x405a04
mov ecx, dword [esi + 0x4c]
mov eax, dword [ebp + 0xc]
movzx eax, al
shl eax, 0x1c
push eax
mov eax, dword [ecx - 0xc]
neg eax
push 0
sbb eax, eax
and eax, ecx
push eax
push dword [esi + 0x48]
push dword [esi + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
test eax, eax
jne 0x4053bd
call fcn.00409640
jmp 0x4053c2
mov dword [edi + 8], eax
xor eax, eax
test eax, eax
js 0x405a0f
mov esi, dword [ebp - 0x68]
mov edi, dword [ebp - 0x6c]
call fcn.004019c0
push eax
push esi
push edi
lea ecx, [ebp + 0xc]
call fcn.00408030
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp + 0xc]
push 0
push dword [ebp - 0x64]
push esi
push dword [edi + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
test eax, eax
jne 0x405402
call fcn.00409640
mov edi, eax
jmp 0x405407
mov dword [edi + 0x10], eax
xor edi, edi
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40541f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
js 0x405a15
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x2c]
test edx, edx
je 0x405442
mov eax, dword [eax + 0x30]
mov ecx, ebx
push dword [ebp + 8]
add eax, edx
push eax
push edx
call fcn.00408810
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x34]
test ecx, ecx
je 0x405460
mov eax, dword [ebx + 0x38]
push dword [ebp + 8]
add eax, ecx
push eax
push ecx
mov ecx, edi
call fcn.00408810
mov edx, dword [ebx + 0x60]
mov ecx, edx
lea esi, [ecx + 2]
jmp 0x405470
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405470
sub ecx, esi
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x10]
push edx
add ecx, 0x38
call fcn.00408ac0
mov edx, dword [ebx + 0x64]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405494
sub ecx, esi
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x10]
push edx
lea ecx, [ecx + 0x50]
call fcn.00408ac0
mov edx, dword [ebx + 0x50]
mov ecx, edx
lea esi, [ecx + 2]
jmp 0x4054c0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4054c0
sub ecx, esi
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x10]
push edx
lea ecx, [ecx + 0x68]
call fcn.00408ac0
mov edx, dword [ebx + 0x54]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4054e4
sub ecx, esi
mov esi, dword [ebp - 0x10]
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x80]
call fcn.00408ac0
mov eax, dword [ebx + 0x18]
mov dword [esi + 0xa8], eax
mov eax, dword [ebx + 0x1c]
mov dword [esi + 0xac], eax
mov eax, dword [ebx + 0x6c]
mov dword [esi + 0xa4], eax
mov eax, dword [ebx + 0x68]
mov dword [esi + 0x9c], eax
mov eax, dword [ebx + 0x5c]
mov dword [esi + 0xa0], eax
mov eax, dword [ebx + 0x58]
mov dword [esi + 0x98], eax
mov eax, dword [ebx + 0x20]
mov dword [esi + 0xb0], eax
mov edx, dword [ebx + 0x28]
mov ecx, edx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405550
sub ecx, esi
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x10]
push edx
lea ecx, [ecx + 0xcc]
call fcn.00408ac0
mov edx, dword [ebx + 0x24]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405577
sub ecx, esi
mov esi, dword [ebp - 0x10]
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0xb4]
call fcn.00408ac0
mov eax, dword [edi]
mov dword [esi + 0xf0], eax
mov eax, dword [ebx + 0x38]
mov dword [esi + 0xf4], eax
xor eax, eax
fld qword [ebx + 0x40]
xor ebx, ebx
fstp qword [esi + 0xf8]
xor esi, esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], esi
mov eax, dword [eax + 0x10]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x14], eax
inc eax
mov byte [ebp - 4], 6
mov ecx, 2
mul ecx
test edx, edx
ja 0x405a30
jb 0x4055f3
cmp eax, 0xffffffff
ja 0x405a30
push eax
call fcn.0041dd88
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebp - 0x2c], edi
setne al
test al, al
je 0x405a30
mov eax, dword [ebp + 8]
push dword [eax + 0x10]
mov eax, dword [ebp - 0x14]
inc eax
push eax
push edi
call fcn.0041a06a
add esp, 0xc
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x14], 0
jl 0x405805
mov ecx, 2
mov eax, edi
sub ecx, edi
mov dword [ebp - 0x18], eax
xor esi, esi
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x14]
xor ebx, ebx
lea esp, [esp]
movzx eax, word [eax]
cmp eax, 0x2c
je 0x405666
cmp eax, 0x3b
je 0x405666
test ax, ax
jne 0x4057e1
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov word [eax], cx
lea eax, [esi + edi]
push eax
lea ecx, [ebp + 0xc]
call fcn.00409300
mov byte [ebp - 4], 7
xor esi, esi
mov ebx, dword [ebp + 0xc]
movzx eax, word [ebx]
test ax, ax
je 0x4056fb
mov ecx, eax
lea ecx, [ecx]
push ecx
call fcn.0041ddcc
add esp, 4
test eax, eax
je 0x4056a5
test esi, esi
jne 0x4056a7
mov esi, ebx
jmp 0x4056a7
xor esi, esi
movzx eax, word [ebx + 2]
add ebx, 2
mov ecx, eax
test ax, ax
jne 0x405690
test esi, esi
je 0x4056f8
mov eax, dword [ebp + 0xc]
sub esi, eax
sar esi, 1
js 0x405a21
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x4056e3
push esi
lea ecx, [ebp + 0xc]
call fcn.00409100
mov eax, dword [ebp + 0xc]
cmp esi, dword [eax - 8]
jg 0x405a21
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp + 0xc]
mov word [eax + esi*2], cx
mov ebx, dword [ebp + 0xc]
movzx eax, word [ebx]
push eax
call fcn.0041ddcc
add esp, 4
test eax, eax
je 0x405724
jmp 0x405710
movzx eax, word [ebx + 2]
add ebx, 2
push eax
call fcn.0041ddcc
add esp, 4
test eax, eax
jne 0x405710
mov eax, dword [ebp + 0xc]
cmp ebx, eax
je 0x4057a4
mov esi, dword [eax - 0xc]
sub ebx, eax
sar ebx, 1
test esi, esi
js 0x405a21
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x405757
push esi
lea ecx, [ebp + 0xc]
call fcn.00409100
mov eax, dword [ebp + 0xc]
mov edx, dword [eax - 0xc]
lea esi, [eax + ebx*2]
mov ecx, edx
sub ecx, ebx
mov dword [ebp - 0x28], ecx
lea ecx, [ecx*2 + 2]
push ecx
push esi
lea ecx, [edx*2 + 2]
push ecx
push eax
call fcn.00408a30
mov ecx, dword [ebp - 0x28]
add esp, 0x10
test ecx, ecx
js 0x405a21
mov eax, dword [ebp + 0xc]
cmp ecx, dword [eax - 8]
jg 0x405a21
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp + 0xc]
mov word [eax + ecx*2], dx
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0
je 0x4057b9
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x40]
call fcn.00407970
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x24]
lea edx, [eax - 0x10]
add esi, dword [ebp - 0x18]
or eax, 0xffffffff
mov byte [ebp - 4], 6
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4057db
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
inc ebx
add eax, 2
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], eax
cmp ebx, ecx
jle 0x405650
mov eax, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ebx
mov eax, esi
mov dword [ebp - 0x14], 0
sub eax, ebx
sar eax, 2
mov dword [ebp + 0xc], eax
inc eax
mov byte [ebp - 4], 8
mov ecx, 4
mul ecx
test edx, edx
ja 0x405a30
jb 0x405835
cmp eax, 0xffffffff
ja 0x405a30
push eax
call fcn.0041dd88
mov esi, eax
add esp, 4
test esi, esi
mov dword [ebp - 0x14], esi
setne al
test al, al
je 0x405a30
mov edx, dword [ebp + 0xc]
test edx, edx
jle 0x405874
sub ebx, esi
mov ecx, esi
mov dword [ebp - 0x1c], ebx
mov ebx, edx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + ecx]
lea ecx, [ecx + 4]
mov dword [ecx - 4], eax
sub ebx, 1
jne 0x405863
mov edx, dword [ebp + 0xc]
mov dword [esi + edx*4], 0
mov eax, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x44]
mov dword [ebp - 0x1c], eax
call fcn.004019c0
push eax
push ebx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
call fcn.00408030
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x4c]
mov dword [ebp - 0x1c], eax
call fcn.004019c0
push eax
push ebx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x1c]
call fcn.00408030
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0xa
push eax
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x20]
call fcn.00407c40
add esp, 4
mov byte [ebp - 4], 0xc
or eax, 0xffffffff
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4058ea
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xd
or eax, 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405909
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
sub esp, 8
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 4]
xor eax, eax
cmp dword [ebp - 0x70], 2
setne al
dec eax
and eax, 0x800000
push eax
mov eax, dword [ebp + 0xc]
neg eax
sbb eax, eax
and eax, esi
push eax
mov eax, dword [ecx - 0xc]
neg eax
sbb eax, eax
and eax, ecx
push eax
mov eax, dword [edx - 0xc]
neg eax
push ecx
mov ecx, dword [ebp - 0x34]
sbb eax, eax
and eax, edx
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x30]
call fcn.00403a00
test eax, eax
js 0x405a1b
mov byte [ebp - 4], 8
or eax, 0xffffffff
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405979
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
call fcn.0041a0ce
push edi
call fcn.0041a0ce
mov ebx, dword [ebp - 0x24]
add esp, 8
mov byte [ebp - 4], 4
test ebx, ebx
je 0x4059ed
mov edi, dword [ebp - 0x3c]
mov esi, ebx
cmp esi, edi
je 0x4059c1
lea esp, [esp]
mov edx, dword [esi]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4059ba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, edi
jne 0x4059a0
mov ecx, dword [ebp - 0x28]
mov eax, ebx
sub ecx, ebx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x4059e3
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405a2b
push ecx
push ebx
call fcn.00414cce
add esp, 8
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.00409640
push eax
call fcn.004093b0
push eax
call fcn.004093b0
push edi
call fcn.004093b0
push eax
call fcn.004093b0
push 0x80070057
call fcn.004093b0
call fcn.0041a372
push 0x8007000e
call fcn.004093b0
int3