Function at 0x6c128e40
Capabilities:
Resolve dns
Resolve function by parsing pe exports

Disassembly:
push esi
push ebx
sub esp, 0x24
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
cmp eax, 0x2d
je 0x6c128d80
ja 0x6c128d68
cmp eax, 0x17
jne 0x6c128db0
test byte [0x6c1451fc], 4
jne 0x6c128df0
mov dword [ebx], 4
mov eax, 0x2ef2
add esp, 0x24
pop ebx
pop esi
ret
lea esi, [eax - 0x49]
cmp esi, 1
ja 0x6c128db0
test byte [0x6c1451fc], 4
jne 0x6c128dc0
mov eax, 0x2ef0
jmp 0x6c128d5d
test ebx, ebx
je 0x6c128e30
cmp dword [ebx], 3
jbe 0x6c128e20
test edx, edx
je 0x6c128e30
mov eax, dword [esi + 0x14]
mov dword [edx], eax
xor eax, eax
mov dword [ebx], 4
add esp, 0x24
pop ebx
pop esi
ret
mov dword [esp + 0x30], ecx
add esp, 0x24
mov ecx, ebx
pop ebx
pop esi
jmp fcn.6c129400
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Called_on_global_option__lu_n
mov dword [esp + 8], str.INET_QueryOption
mov dword [esp + 4], 0x6c1451fc
mov dword [esp], 2
call fcn.6c123f10
jmp 0x6c128d79
mov dword [esp + 0xc], str.INTERNET_OPTION_REQUEST_FLAGS_n
mov dword [esp + 8], str.INET_QueryOption
mov dword [esp + 4], 0x6c1451fc
mov dword [esp], 2
call fcn.6c123f10
jmp 0x6c128d52
mov dword [ebx], 4
mov eax, 0x7a
jmp 0x6c128d5d
mov eax, 0x57
jmp 0x6c128d5d
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x50]
mov ebx, dword [esp + 0x58]
mov esi, dword [esp + 0x5c]
mov ebp, dword [esp + 0x60]
cmp eax, 0x26
je 0x6c128fb0
ja 0x6c128ea8
cmp eax, 2
je 0x6c1290a0
cmp eax, 9
jne 0x6c128f88
test byte [0x6c1451fc], 8
jne 0x6c129160
cmp dword [esi], 3
jbe 0x6c129358
mov dword [esi], 4
mov dword [ebx], 1
xor eax, eax
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0x29
jne 0x6c128f88
test byte [0x6c1451fc], 8
jne 0x6c129190
mov edx, dword [esi]
mov ecx, dword [edi + 0x40]
test ebp, ebp
jne 0x6c1290d0
mov eax, 1
test ecx, ecx
je 0x6c128f20
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
sub esp, 0x20
mov edx, dword [esp + 0x24]
mov dword [esi], eax
test ebx, ebx
je 0x6c129358
cmp edx, eax
jb 0x6c129358
mov edx, dword [edi + 0x40]
test edx, edx
je 0x6c129380
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
sub esp, 0x20
sub dword [esi], 1
jmp 0x6c128e9a
mov dword [esp + 0x60], ebp
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], eax
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
jmp 0x6c128d20
test esi, esi
je 0x6c129390
mov ecx, dword [edi + 0x44]
test ebp, ebp
je 0x6c1291c0
mov dword [esp + 0x24], 0xc
test ecx, ecx
je 0x6c128ff2
cmp word [ecx], 0
je 0x6c1293e1
mov eax, ecx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x6c128fe0
sub eax, ecx
add eax, 0xe
mov dword [esp + 0x24], eax
mov ebp, dword [edi + 0x48]
mov eax, dword [esp + 0x24]
test ebp, ebp
je 0x6c129024
cmp word [ebp], 0
je 0x6c1293ee
mov eax, ebp
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x6c129010
sub eax, ebp
add eax, 2
mov edx, dword [esp + 0x24]
add eax, edx
test ebx, ebx
je 0x6c1293b0
cmp dword [esi], eax
jb 0x6c1293b0
mov edx, dword [edi + 0x54]
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx], edx
test ecx, ecx
je 0x6c129070
lea edi, [ebx + 0xc]
xor edx, edx
mov dword [esp + 0x28], ebp
lea esi, [esi]
movzx ebp, word [ecx + edx]
mov word [ebx + edx + 0xc], bp
add edx, 2
test bp, bp
jne 0x6c129058
mov ebp, dword [esp + 0x28]
mov dword [ebx + 4], edi
test ebp, ebp
je 0x6c129094
mov edi, dword [esp + 0x24]
xor edx, edx
add edi, ebx
lea esi, [esi]
movzx ecx, word [ebp + edx]
mov word [edi + edx], cx
add edx, 2
test cx, cx
jne 0x6c129080
mov dword [ebx + 8], edi
mov dword [esi], eax
jmp 0x6c128e9a
test byte [0x6c1451fc], 8
jne 0x6c129130
cmp dword [esi], 3
jbe 0x6c129358
mov eax, dword [edi + 0x58]
mov dword [ebx], eax
mov dword [esi], 4
jmp 0x6c128e9a
test ebx, ebx
sete al
mov edi, eax
test ecx, ecx
je 0x6c1293b8
cmp word [ecx], 0
je 0x6c1293d5
mov eax, ecx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x6c1290f0
sub eax, ecx
lea ebp, [eax + 2]
sar eax, 1
mov dword [esi], ebp
cmp edx, ebp
jb 0x6c129358
mov edx, edi
test dl, dl
jne 0x6c129358
lea esi, [esi]
movzx edx, word [ecx]
add ecx, 2
add ebx, 2
mov word [ebx - 2], dx
test dx, dx
jne 0x6c129118
jmp 0x6c129094
mov dword [esp + 0xc], str.INTERNET_OPTION_CONNECT_TIMEOUT_n
mov dword [esp + 8], str.APPINFO_QueryOption
mov dword [esp + 4], 0x6c1451fc
mov dword [esp], 3
call fcn.6c123f10
jmp 0x6c1290ad
mov dword [esp + 0xc], str.INTERNET_OPTION_HANDLE_TYPE_n
mov dword [esp + 8], str.APPINFO_QueryOption
mov dword [esp + 4], 0x6c1451fc
mov dword [esp], 3
call fcn.6c123f10
jmp 0x6c128e85
mov dword [esp + 0xc], str.INTERNET_OPTION_USER_AGENT_n
mov dword [esp + 8], str.APPINFO_QueryOption
mov dword [esp + 4], 0x6c1451fc
mov dword [esp], 3
call fcn.6c123f10
jmp 0x6c128ebe
test ecx, ecx
je 0x6c129368
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
lea ebp, [eax + 0xc]
sub esp, 0x20
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x48]
test eax, eax
je 0x6c1293a0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
lea ecx, [eax + ebp]
sub esp, 0x20
mov edx, eax
test ebx, ebx
je 0x6c129350
cmp dword [esi], ecx
jb 0x6c129350
mov eax, dword [edi + 0x54]
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx], eax
mov eax, dword [edi + 0x44]
test eax, eax
je 0x6c1292ef
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x2c], ecx
lea ecx, [ebx + 0xc]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
sub esp, 0x20
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x2c]
mov eax, dword [edi + 0x48]
test eax, eax
je 0x6c12933f
add ebp, ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [ebx + 8], ebp
sub esp, 0x20
mov ecx, dword [esp + 0x24]
mov dword [esi], ecx
jmp 0x6c128e9a
mov dword [esi], ecx
lea esi, [esi]
mov eax, 0x7a
jmp 0x6c128e9c
mov ebp, 0xc
mov dword [esp + 0x24], 0
jmp 0x6c129213
mov byte [ebx], 0
jmp 0x6c128f79
mov eax, 0x57
jmp 0x6c128e9c
mov ecx, ebp
xor edx, edx
jmp 0x6c129267
mov dword [esi], eax
jmp 0x6c129358
mov dword [esi], 2
cmp edx, 1
jbe 0x6c129358
test al, al
jne 0x6c129358
xor eax, eax
mov word [ebx], ax
xor eax, eax
mov dword [esi], eax
jmp 0x6c128e9a
xor eax, eax
mov ebp, 2
jmp 0x6c129100
mov dword [esp + 0x24], 0xe
jmp 0x6c128ff2
mov eax, 2
jmp 0x6c12901e