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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [ebp + 8]
mov dword [esp + 4], 0x414340
mov dword [esp], str.WilStaging_02
call fcn.0040e8bc
mov edx, str.address_not_available
mov ecx, 0x8d
movzx eax, word [edx]
add edx, 2
test ax, ax
je 0x4052a9
add ecx, eax
cmp ecx, 0x5e2
jbe 0x40528a
add dword [0x411f40], 0x546ec872
mov esi, dword [0x411f40]
xor edi, edi
mov dword [ebp - 0x24], edi
mov eax, esi
sub esi, 0x7adeb6da
and eax, 0x9fb342ba
and esi, 0x60a94b0e
mov dword [ebp - 0x30], eax
call fcn.0040cebc
mov eax, dword [ebp - 0x30]
mov dword [0x411f90], esi
mov dword [0x412158], 0x2ea1dc26
lea edi, [eax + 0x3b5cc923]
mov dword [0x411f40], edi
mov dword [esp + 4], 0x414620
mov dword [esp], str.bad_file_descriptor
call fcn.0040ddf0
xor eax, eax
cmp dword [ebp + 0xc], 0
mov dword [0x412230], 0xee4441d4
mov dword [0x411fac], 0x96dcf6ba
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
je 0x405328
test ebx, ebx
jne 0x40532f
xor eax, eax
jmp 0x405554
mov edx, dword [ebx + 0x3c]
add edx, ebx
mov dword [ebp - 0x2c], edx
call fcn.0040cebc
mov eax, esi
sub esi, 0x4858333d
mov dword [0x412158], 0x3eaf5ddc
xor eax, 0xd4a3c557
and eax, 0x3379e1d8
mov dword [0x411fac], eax
mov dword [esp + 4], 0x414620
mov dword [esp], str.address_not_available
call fcn.0040e8bc
mov edx, dword [ebp - 0x2c]
mov eax, ebx
mov ecx, 0x2af
mov dword [0x412230], esi
add eax, dword [edx + 0x78]
mov dword [ebp - 0x2c], eax
mov eax, dword [edx + 0x7c]
mov edx, str.bad_file_descriptor
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x3c], eax
movzx eax, word [edx]
add edx, 2
test ax, ax
je 0x4053bc
add ecx, eax
cmp ecx, 0x66c
jbe 0x40539b
xor edi, 0xcdc9b790
mov dword [0x412230], edi
mov dword [0x411f90], 0xe3620e2b
mov eax, dword [ebp - 0x30]
xor esi, esi
add eax, 0x17ed94db
mov dword [ebp - 0x30], eax
mov dword [0x412018], eax
mov dword [esp + 4], 0x414620
mov dword [esp], str.onecoreuap_base_appmodel_searchcommonpkmutildlmstr.cxx
call fcn.0040e8bc
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x2c]
cmp esi, dword [eax + 0x18]
jae 0x405328
mov eax, dword [0x412230]
xor ecx, ecx
and eax, 0x89f93db6
mov dword [ebp - 0x34], eax
mov dword [0x411f40], eax
mov eax, dword [ebp - 0x3c]
add eax, ebx
mov edi, dword [eax + esi*4]
mov dword [esp + 8], 1
mov dword [esp + 4], ecx
add edi, ebx
mov dword [esp], edi
call fcn.00404100
cmp eax, dword [ebp + 0xc]
jne 0x40554e
mov edx, str.host_unreachable
mov ecx, 0xf88
movzx eax, word [edx]
add edx, 2
test ax, ax
je 0x40546e
add ecx, eax
cmp ecx, 0x10d1
jbe 0x40544f
mov dword [0x412158], 0xfde3dac8
mov edx, dword [ebp - 0x34]
imul eax, dword [ebp - 0x30], 0xd0a304a6
add esi, esi
add esi, ebx
xor edx, 0xdfadfc79
mov dword [0x412230], edx
mov dword [ebp - 0x34], edx
mov dword [0x411f90], eax
mov dword [esp + 4], 0x414340
mov dword [esp], str.WilError_03
call fcn.0040ddf0
mov edx, dword [ebp - 0x34]
add edx, 0x373d518f
mov dword [0x412018], edx
mov dword [esp + 4], 0x414340
mov dword [esp], str.address_not_available
call fcn.0040ddf0
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
movzx eax, word [esi + eax]
lea eax, [ebx + eax*4]
mov edx, dword [eax + ecx]
mov eax, dword [ebp - 0x2c]
add edx, ebx
mov dword [ebp - 0x24], edx
cmp edx, eax
jae 0x4054e8
mov eax, dword [ebp - 0x24]
jmp 0x405554
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x2c]
add eax, ebx
add eax, ecx
cmp edx, eax
jae 0x4054e3
mov dword [esp], edi
call fcn.0040bc48
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x20], ax
inc eax
mov word [ebp - 0x1e], ax
mov eax, dword [0x412158]
or eax, 0x7f9f8e87
mov dword [0x412230], eax
mov eax, dword [0x410be0]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x405328
lea edx, [ebp - 0x24]
mov dword [esp], ebx
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 8], edx
lea edx, [ebp - 0x20]
mov dword [esp + 4], edx
call eax
sub esp, 0x10
test eax, eax
jns 0x4054e3
jmp 0x405328
inc esi
jmp 0x4053fe
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret