Function at 0x402690
Capabilities:
Access peb ldr_data
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43c809
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x449f6c]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push esi
push edi
mov eax, dword [0x449f6c]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov ebx, dword [esi + 0x10]
mov dword [esp + 0x30], eax
mov edi, edx
mov dword [esp + 0x10], 0
cmp dword [esi + 0xc], ebx
jbe 0x4026f0
call fcn.004243a2
mov ecx, dword [esi]
mov dword [esp + 0x54], ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x34], ecx
cmp ecx, dword [esi + 0x10]
jbe 0x40270b
call fcn.004243a2
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x54]
mov eax, dword [esi]
push ebx
push edx
push ecx
push eax
lea ebx, [esp + 0x64]
call fcn.00408750
xor ebx, ebx
push ebx
xor eax, eax
push 0x441e18
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], ax
call fcn.0040e9b0
lea ecx, [esp + 0x38]
mov dword [esp + 0xe8], ebx
push ecx
mov ebx, esi
call fcn.00407950
cmp dword [esp + 0x50], 8
jb 0x402769
mov edx, dword [esp + 0x3c]
push edx
call fcn.00423e76
add esp, 4
mov eax, 7
xor ebx, ebx
xor ecx, ecx
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd0], ebx
mov word [esp + 0xc0], cx
mov dword [esp + 0xe8], 1
xor edx, edx
mov dword [esp + 0xb8], eax
mov dword [esp + 0xb4], ebx
mov word [esp + 0xa4], dx
push 0x4420f0
push edi
mov byte [esp + 0xf0], 2
call fcn.004244a0
add esp, 8
cmp eax, ebx
jne 0x402812
push 3
push 0x4420f8
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
call fcn.0040ec00
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0xec], 3
call fcn.0040ed20
push 0x444c90
lea ecx, [esp + 0x60]
push ecx
mov dword [esp + 0x64], vtable.std::invalid_argument.0
call fcn.004257eb
sub eax, edi
sar eax, 1
push eax
xor edx, edx
push edi
lea ecx, [esp + 0x8c]
mov dword [esp + 0xa4], 7
mov dword [esp + 0xa0], ebx
mov word [esp + 0x90], dx
call fcn.0040e9b0
xor eax, eax
mov byte [esp + 0xe8], 4
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpGetDefaultProxyConfiguration]
test eax, eax
je 0x4028d0
cmp dword [esp + 0x24], 3
jne 0x4028aa
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x4028bd
push eax
lea ecx, [esp + 0x60]
call fcn.0040e660
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x88]
mov edx, esi
mov byte [esp + 0xec], 5
call fcn.00402420
lea ecx, [esp + 0x5c]
mov byte [esp + 0xe8], 4
call fcn.0040e6a0
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x4028bd
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x4028d0
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esp + 0x2c], ebx
xor eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
jne 0x40290e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp eax, 2
jne 0x402a38
mov dword [esp + 0x14], 1
jmp 0x402914
cmp dword [esp + 0x14], ebx
je 0x40296e
mov eax, dword [esp + 0x30]
mov ebx, dword [eax + 8]
lea ecx, [esp + 0xa0]
push ecx
lea edx, [esp + 0xc0]
push edx
xor ecx, ecx
call fcn.00402300
mov ebx, eax
add esp, 8
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x402955
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x88]
mov edx, esi
call fcn.00402420
mov ecx, ebx
call fcn.00402200
test eax, eax
je 0x402a36
mov dword [esp + 0x10], 0
xor ebx, ebx
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x4029ca
mov edx, dword [esp + 0x30]
mov ebx, dword [edx + 8]
lea eax, [esp + 0xa0]
push eax
lea edx, [esp + 0xc0]
push edx
call fcn.00402300
mov edi, eax
add esp, 8
mov dword [esp + 0x10], edi
test edi, edi
jne 0x4029b5
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x88]
mov edx, esi
call fcn.00402420
mov ecx, edi
call fcn.00402200
test eax, eax
je 0x402a36
mov dword [esp + 0x10], 0
xor ebx, ebx
mov edx, dword [esp + 0x1c]
cmp edx, ebx
je 0x4029f4
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4029d7
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0xc4]
call fcn.0040e9b0
mov edx, dword [esp + 0x20]
cmp edx, ebx
je 0x402a1e
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402a01
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0xa8]
call fcn.0040e9b0
lea ecx, [esp + 0xbc]
push ecx
lea ecx, [esp + 0x88]
mov edx, esi
call fcn.00402420
jmp 0x402a38
xor ebx, ebx
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp eax, ebx
je 0x402a4d
push eax
call esi
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x402a5c
push eax
call esi
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x402a6b
push eax
call esi
mov dword [esp + 0x20], ebx
mov esi, 8
cmp dword [esp + 0x9c], esi
jb 0x402a89
mov edx, dword [esp + 0x88]
push edx
call fcn.00423e76
add esp, 4
xor eax, eax
mov edi, 7
mov dword [esp + 0x9c], edi
mov dword [esp + 0x98], ebx
mov word [esp + 0x88], ax
cmp dword [esp + 0xb8], esi
jb 0x402abf
mov ecx, dword [esp + 0xa4]
push ecx
call fcn.00423e76
add esp, 4
xor edx, edx
mov dword [esp + 0xb8], edi
mov dword [esp + 0xb4], ebx
mov word [esp + 0xa4], dx
cmp dword [esp + 0xd4], esi
jb 0x402af0
mov eax, dword [esp + 0xc0]
push eax
call fcn.00423e76
add esp, 4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.004239c1
mov esp, ebp
pop ebp
ret 4