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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50d5be
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x53577c]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push esi
push edi
mov eax, dword [0x53577c]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 2
mov dword [esp + 0x40], ecx
call fcn.00453339
mov edi, dword [sym.imp.WININET.dll_InternetGetCookieW]
add esp, 4
mov ebx, eax
lea eax, [esp + 0x18]
push eax
push ebx
push 0
push esi
mov dword [esp + 0x28], 0
call edi
test eax, eax
jne 0x4162e0
call dword [0x50f0f8]
cmp eax, 0x7a
jne 0x4163d6
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00453339
mov ebx, eax
mov eax, dword [esp + 0x1c]
add esp, 4
lea ecx, [eax + eax]
push ecx
push 0
push ebx
call fcn.00453ec0
add esp, 0xc
lea edx, [esp + 0x18]
push edx
push ebx
push 0
push esi
call edi
test eax, eax
je 0x416290
sub esp, 0x1c
mov ecx, esp
xor eax, eax
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], 0
mov word [ecx + 4], ax
mov eax, ebx
mov esi, 0x3b
mov dword [esp + 0x38], esp
lea edi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x416307
sub eax, edi
sar eax, 1
push eax
push ebx
call fcn.004053d0
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
call fcn.0040c740
add esp, 0x20
xor eax, eax
mov dword [esp + 0xc0], eax
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x14], eax
mov ecx, esi
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x416559
mov dword [esp + 0x1c], 0x3d
mov ecx, dword [esp + 0x14]
push ecx
lea eax, [esp + 0x28]
call fcn.00416a50
push 0xffffffffffffffff
xor esi, esi
push esi
xor edx, edx
push eax
lea ecx, [esp + 0x68]
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], esi
mov word [esp + 0x6c], dx
call fcn.004052d0
push 1
push esi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0xcc], 1
call fcn.0040b580
mov edi, eax
cmp edi, 0xffffffff
jne 0x4163e6
mov byte [esp + 0xc0], 0
cmp dword [esp + 0x74], 8
jb 0x41652c
mov ecx, dword [esp + 0x60]
push ecx
jmp 0x416524
push ebx
call fcn.00453eaa
add esp, 4
xor eax, eax
jmp 0x41659a
push edi
push esi
lea edx, [esp + 0x80]
push edx
lea ecx, [esp + 0x68]
call fcn.00404460
sub esp, 0x1c
mov ecx, esp
mov byte [esp + 0xdc], 2
mov dword [esp + 0x3c], esp
push 0xffffffffffffffff
push esi
lea edx, [esp + 0x9c]
xor eax, eax
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], esi
push edx
mov word [ecx + 4], ax
call fcn.004052d0
lea esi, [esp + 0x5c]
call fcn.0040bf20
add esp, 0x1c
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x84]
mov byte [esp + 0xcc], 3
call fcn.004052d0
mov esi, 8
mov byte [esp + 0xc0], 2
cmp dword [esp + 0x58], esi
jb 0x41646f
mov eax, dword [esp + 0x44]
push eax
call fcn.00453344
add esp, 4
push 0xffffffffffffffff
inc edi
push edi
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x68]
call fcn.00404460
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x78]
push edx
mov byte [esp + 0xc4], 4
call fcn.00416820
push 0xffffffffffffffff
xor edi, edi
push edi
lea ecx, [esp + 0x9c]
push ecx
mov ecx, eax
call fcn.004052d0
cmp dword [esp + 0xac], esi
jb 0x4164c7
mov edx, dword [esp + 0x98]
push edx
call fcn.00453344
add esp, 4
xor eax, eax
mov dword [esp + 0xac], 7
mov dword [esp + 0xa8], edi
mov word [esp + 0x98], ax
cmp dword [esp + 0x90], esi
jb 0x4164f9
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.00453344
add esp, 4
xor edx, edx
mov byte [esp + 0xc0], dl
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], edi
mov word [esp + 0x7c], dx
cmp dword [esp + 0x74], esi
jb 0x41652c
mov eax, dword [esp + 0x60]
push eax
call fcn.00453344
add esp, 4
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
inc dword [esp + 0x14]
mov ecx, esi
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp dword [esp + 0x14], ecx
jb 0x416366
xor eax, eax
cmp edi, eax
je 0x41657f
mov edx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x30]
push eax
push esi
push edi
call fcn.00409b10
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00453344
add esp, 0x14
xor eax, eax
mov edx, dword [esp + 0x24]
push edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call fcn.00453344
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.00453735
mov esp, ebp
pop ebp
ret 4