Function at 0x475ca0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x487e72
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov al, byte [esp + 0x30]
push esi
mov esi, ecx
push edi
push 0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], al
call dword [0x489244]
mov cl, byte [esp + 0x38]
push 0
mov byte [esp + 0xc], cl
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0
call dword [0x489244]
mov edx, dword [0x489228]
lea ecx, [esi + 0x38]
mov byte [esp + 0x30], 1
mov eax, dword [edx]
push eax
push 0
push ecx
lea ecx, [esp + 0x24]
call dword [0x489220]
mov edi, 0x49fa70
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x49fa70
lea ecx, [esp + 0x20]
call dword [0x4892c0]
mov edx, dword [0x489228]
add esi, 0x48
lea ecx, [esp + 0x18]
mov eax, dword [edx]
push eax
push 0
push esi
call dword [0x4892bc]
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0047a860
mov ecx, dword [esp + 0x14]
add esp, 4
cmp eax, ecx
ja 0x475d6d
mov edx, dword [0x489228]
mov ecx, dword [edx]
push ecx
push eax
lea ecx, [esp + 0x10]
call dword [0x489304]
jmp 0x475d7c
sub eax, ecx
push 0
push eax
lea ecx, [esp + 0x10]
call dword [0x4892f8]
mov ecx, dword [esp + 0xc]
mov edx, dword [0x48923c]
test ecx, ecx
jne 0x475d8c
mov ecx, edx
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x475d96
mov eax, edx
mov edx, dword [esp + 0x20]
push ecx
push edx
push eax
call fcn.0047a8d0
add esp, 0xc
test eax, eax
jne 0x475de2
push 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], al
call dword [0x489244]
push 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xffffffff
call dword [0x489244]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
mov edi, str.Proxy_Authorization:_Basic
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
mov eax, dword [0x489228]
push ebp
mov ebp, dword [esp + 0x40]
not ecx
mov edx, dword [ebp + 8]
dec ecx
mov esi, ecx
mov ecx, dword [eax]
sub ecx, edx
cmp ecx, esi
ja 0x475e0f
call dword [0x48927c]
test esi, esi
jbe 0x475e4e
mov ebx, dword [ebp + 8]
push 0
add ebx, esi
mov ecx, ebp
push ebx
call dword [0x48922c]
test al, al
je 0x475e4e
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 4]
mov ecx, esi
add edi, edx
mov edx, ecx
mov esi, str.Proxy_Authorization:_Basic
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov dword [ebp + 8], ebx
mov byte [eax + ebx], 0
mov ecx, dword [0x489228]
mov eax, dword [ecx]
mov ecx, dword [esp + 0x18]
mov edi, eax
cmp ecx, edi
jae 0x475e62
mov edi, ecx
sub eax, dword [ebp + 8]
cmp eax, edi
ja 0x475e6f
call dword [0x48927c]
test edi, edi
jbe 0x475eb6
mov ebx, dword [ebp + 8]
push 0
add ebx, edi
mov ecx, ebp
push ebx
call dword [0x48922c]
test al, al
je 0x475eb6
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x475e95
mov esi, dword [0x48923c]
mov edx, dword [ebp + 8]
mov ecx, edi
mov edi, dword [ebp + 4]
push ebx
add edi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call dword [0x489234]
mov edi, 0x49f04c
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp + 8]
repne scasb al, byte es:[edi]
mov eax, dword [0x489228]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [eax]
sub ecx, edx
cmp ecx, esi
ja 0x475edd
call dword [0x48927c]
test esi, esi
jbe 0x475f1c
mov ebx, dword [ebp + 8]
push 0
add ebx, esi
mov ecx, ebp
push ebx
call dword [0x48922c]
test al, al
je 0x475f1c
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 4]
mov ecx, esi
add edi, edx
mov edx, ecx
mov esi, 0x49f04c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov dword [ebp + 8], ebx
mov byte [eax + ebx], 0
mov ecx, dword [esp + 0x14]
xor esi, esi
pop ebp
cmp ecx, esi
pop ebx
je 0x475f44
mov al, byte [ecx - 1]
test al, al
je 0x475f3a
cmp al, 0xff
je 0x475f3a
dec al
mov byte [ecx - 1], al
jmp 0x475f44
dec ecx
push ecx
call fcn.0047ab00
add esp, 4
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xc], esi
cmp ecx, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
je 0x475f74
mov al, byte [ecx - 1]
test al, al
je 0x475f6a
cmp al, 0xff
je 0x475f6a
dec al
mov byte [ecx - 1], al
jmp 0x475f74
dec ecx
push ecx
call fcn.0047ab00
add esp, 4
mov ecx, dword [esp + 0x28]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 4