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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x494ca0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4b6798]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x4b6798]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
push str.set_cookie
push esi
mov dword [esp + 0x2c], eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x45da14
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x70], edi
xor ecx, ecx
mov eax, esi
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], edi
mov word [esp + 0x44], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x45d861
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea esi, [esp + 0x48]
call fcn.00409bc0
lea edx, [esp + 0x28]
push 0x4a1950
push edx
mov ecx, esi
mov byte [esp + 0x78], 1
call fcn.0046b740
add esp, 8
lea ecx, [esp + 0x14]
cmp ecx, eax
je 0x45d8b9
mov edx, dword [eax]
mov ebx, dword [eax + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ecx
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov byte [esp + 0x70], 1
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x45d8dc
mov edi, dword [esp + 0x2c]
call fcn.00403f60
mov edx, dword [esp + 0x28]
push edx
call fcn.004736d0
add esp, 4
mov edi, dword [esp + 0x14]
mov esi, edi
cmp esi, ebx
je 0x45d9ad
lea ebx, [ebx]
mov eax, dword [edi + 0x14]
cmp eax, 8
jb 0x45d8fc
mov ecx, dword [edi]
jmp 0x45d8fe
mov ecx, edi
cmp eax, 8
jb 0x45d907
mov esi, dword [edi]
jmp 0x45d909
mov esi, edi
push str.set_cookie:
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp eax, esi
jne 0x45d99e
push 0xffffffffffffffff
mov ecx, 0xb
lea esi, [esp + 0x2c]
mov edx, edi
call fcn.00402e20
mov eax, esi
mov byte [esp + 0x70], 3
call fcn.0046b9b0
call fcn.0046b920
push 0
push eax
or eax, 0xffffffff
mov ecx, esi
call fcn.004097e0
cmp dword [esp + 0x38], 0
jne 0x45d967
mov byte [esp + 0x70], 1
cmp dword [esp + 0x3c], 8
jb 0x45d99e
mov eax, dword [esp + 0x28]
push eax
jmp 0x45d996
mov eax, dword [esp + 0x28]
mov esi, 8
cmp dword [esp + 0x3c], esi
jae 0x45d97a
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x24]
push 1
push eax
call fcn.0045d4c0
mov byte [esp + 0x70], 1
cmp dword [esp + 0x3c], esi
jb 0x45d99e
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004736d0
add esp, 4
add edi, 0x1c
cmp edi, ebx
jne 0x45d8f0
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x58], 8
jb 0x45d9c1
mov edx, dword [esp + 0x44]
push edx
call fcn.004736d0
add esp, 4
xor edi, edi
xor eax, eax
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], edi
mov word [esp + 0x44], ax
cmp esi, edi
je 0x45da14
cmp dword [esp + 0x14], ebx
je 0x45da07
cmp dword [esi + 0x14], 8
jb 0x45d9f1
mov ecx, dword [esi]
push ecx
call fcn.004736d0
add esp, 4
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], dx
add esi, 0x1c
cmp esi, ebx
jne 0x45d9e0
mov eax, dword [esp + 0x14]
push eax
call fcn.004736d0
add esp, 4
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004736db
mov esp, ebp
pop ebp
ret 0x14