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

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, edx
sub esp, 0xac
mov dword [esp + 0x40], eax
lea edi, [esp + 0x68]
xor eax, eax
mov dword [esp + 0x4c], ecx
mov ecx, 0xe
rep stosd dword es:[edi], eax
mov dword [esp + 0x64], 0x3c
mov dword [esp + 0x58], 0
test byte [0x6c1451fc], 8
jne 0x6c12d8b0
cmp word [ebx], 0
mov dword [esp + 0x78], 1
mov dword [esp + 0x84], 1
mov dword [esp + 0x8c], 1
mov dword [esp + 0x94], 1
mov dword [esp + 0x9c], 1
je 0x6c12dba0
mov eax, ebx
nop
add eax, 2
cmp word [eax], 0
jne 0x6c12d550
sub eax, ebx
sar eax, 1
lea edx, [esp + 0x64]
mov dword [esp + 8], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym.wininet.dll_InternetCrackUrlW
sub esp, 0x10
test eax, eax
je 0x6c12da80
mov eax, dword [esp + 0x70]
mov edi, dword [esp + 0x90]
mov ebp, dword [esp + 0x94]
mov dword [esp + 0x48], eax
sub eax, 3
cmp eax, 1
jbe 0x6c12d828
mov esi, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
test esi, esi
je 0x6c12dbd2
test ecx, ecx
je 0x6c12dbff
xor eax, eax
jmp 0x6c12d5d0
cmp ecx, eax
je 0x6c12d8a0
movzx edx, word [esi + eax*2]
mov ebx, eax
lea eax, [eax + 1]
test dx, dx
jne 0x6c12d5c8
add eax, eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov ecx, eax
mov dword [esp + 0x3c], eax
test eax, eax
je 0x6c12d610
lea eax, [ebx + ebx]
mov dword [esp + 4], esi
mov esi, ecx
mov dword [esp], ecx
mov dword [esp + 8], eax
call sub.ucrtbase.dll_memcpy
mov ecx, esi
xor esi, esi
mov word [ecx + ebx*2], si
test edi, edi
je 0x6c12dbc5
test ebp, ebp
je 0x6c12dbf3
xor eax, eax
jmp 0x6c12d630
cmp ebp, eax
je 0x6c12d890
movzx edx, word [edi + eax*2]
mov ebx, eax
lea eax, [eax + 1]
test dx, dx
jne 0x6c12d628
add eax, eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov esi, eax
mov dword [esp + 0x44], eax
test eax, eax
je 0x6c12d66c
lea eax, [ebx + ebx]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp], esi
call sub.ucrtbase.dll_memcpy
xor ecx, ecx
mov word [esi + ebx*2], cx
mov edi, dword [esp + 0x84]
xor ebx, ebx
test edi, edi
je 0x6c12d6d8
mov ebx, dword [esp + 0x80]
test ebx, ebx
je 0x6c12d6d8
xor eax, eax
jmp 0x6c12d698
cmp edi, eax
je 0x6c12daa0
movzx ecx, word [ebx + eax*2]
mov edx, eax
lea eax, [eax + 1]
test cx, cx
jne 0x6c12d690
lea edi, [edx + edx + 2]
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_malloc]
mov ebp, eax
test eax, eax
je 0x6c12d6d3
lea eax, [edi - 2]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp], ebp
call sub.ucrtbase.dll_memcpy
xor edx, edx
mov word [ebp + edi - 2], dx
mov ebx, ebp
lea esi, [esi]
mov ebp, dword [esp + 0x8c]
xor esi, esi
test ebp, ebp
je 0x6c12d740
mov esi, dword [esp + 0x88]
test esi, esi
je 0x6c12d740
xor eax, eax
jmp 0x6c12d700
cmp ebp, eax
je 0x6c12da90
movzx edx, word [esi + eax*2]
mov ecx, eax
lea eax, [eax + 1]
test dx, dx
jne 0x6c12d6f8
lea edi, [ecx + ecx + 2]
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_malloc]
mov ebp, eax
test eax, eax
je 0x6c12d73b
lea eax, [edi - 2]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], ebp
call sub.ucrtbase.dll_memcpy
xor eax, eax
mov word [ebp + edi - 2], ax
mov esi, ebp
lea esi, [esi]
mov edi, dword [esp + 0x48]
cmp edi, 1
je 0x6c12d990
lea eax, [edi - 3]
cmp eax, 1
ja 0x6c12dab0
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x1c], 1
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x5c], 0x6c14ccb2
or eax, 0x800000
cmp edi, 4
mov dword [esp + 0x60], 0
cmovne eax, dword [esp + 0xc4]
mov dword [esp + 0xc4], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x14], eax
movzx eax, word [esp + 0x7c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.6c1232f0
test eax, eax
je 0x6c12dac8
mov dword [esp], eax
call fcn.6c12c120
xor ebp, ebp
test byte [0x6c1451fc], 8
je 0x6c12da27
lea esi, [esi]
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], str.__p_____n
mov dword [esp + 8], str.INTERNET_InternetOpenUrlW
mov dword [esp + 4], 0x6c1451fc
mov dword [esp], 3
call fcn.6c123f10
jmp 0x6c12da27
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x6c12d5a6
lea edx, [edi + ebp*2]
cmp dword [esp + 0x98], edx
je 0x6c12d87d
mov dword [esp + 8], 0xe99
mov dword [esp + 4], str._Users_gcenx_Documents_GitHub_wineskincx_dlls_wininet_internet.c
mov dword [esp], str.urlComponents.lpszUrlPath__urlComponents.dwUrlPathLength__urlComponents.lpszExtraInfo
call dword [sym.imp.ucrtbase.dll__assert]
mov esi, dword [esp + 0x70]
mov ebp, dword [esp + 0x94]
mov eax, dword [esp + 0x9c]
mov edi, dword [esp + 0x90]
mov dword [esp + 0x48], esi
add ebp, eax
mov dword [esp + 0x94], ebp
jmp 0x6c12d5a6
lea eax, [ebx + ebx + 4]
mov ebx, ebp
jmp 0x6c12d640
lea eax, [ebx + ebx + 4]
mov ebx, ecx
jmp 0x6c12d5e0
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x6c12dbe9
shr eax, 0x10
test eax, eax
je 0x6c12da60
mov edi, dword [esp + 0x4c]
mov dword [esp + 4], 0xffffffff
mov esi, 0x6c14b9ad
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x6c12d8f6
mov edx, 0xffffffff
mov eax, edi
call fcn.6c123990
mov esi, eax
test ebx, ebx
je 0x6c12dbdf
mov eax, ebx
shr eax, 0x10
test eax, eax
je 0x6c12dbb0
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x6c14b9ad
test edx, edx
jne 0x6c12d936
mov edx, 0xffffffff
mov eax, ebx
call fcn.6c123990
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0xc0]
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x40]
mov dword [esp + 0xc], str.__p___s___s___08lx___08lx___08Ix__n
mov dword [esp + 8], str.INTERNET_InternetOpenUrlW
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x6c1451fc
mov dword [esp + 0x20], ecx
mov dword [esp], 3
call fcn.6c123f10
jmp 0x6c12d50e
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x1c], 1
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x14], eax
movzx eax, word [esp + 0x7c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.6c1105a0
mov dword [esp + 0x58], eax
test eax, eax
je 0x6c12d7e2
mov ecx, dword [esp + 0xc8]
mov dword [esp + 8], 0x80000000
mov dword [esp], eax
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 4], ecx
call sym.wininet.dll_FtpOpenFileW
sub esp, 0x14
mov ebp, eax
test eax, eax
je 0x6c12dc21
test byte [0x6c1451fc], 8
jne 0x6c12d7f8
mov eax, dword [esp + 0x3c]
mov edi, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], eax
call edi
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call edi
mov dword [esp], ebx
call edi
mov dword [esp], esi
call edi
add esp, 0xac
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x4c]
mov dword [esp], 0x6c14b9a0
mov dword [esp + 4], eax
call fcn.6c123dd0
mov esi, eax
jmp 0x6c12d8f6
add esp, 0xac
xor ebp, ebp
pop ebx
mov eax, ebp
pop esi
pop edi
pop ebp
ret
mov ecx, ebp
jmp 0x6c12d70e
mov edx, edi
jmp 0x6c12d6a6
xor ebp, ebp
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x2ee6
jmp 0x6c12da1a
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x58]
mov dword [esp], eax
call sym.wininet.dll_HttpOpenRequestW
sub esp, 0x20
mov ebp, eax
test eax, eax
je 0x6c12dc0b
mov eax, dword [esp + 0xc0]
mov dword [esp + 0xc], 0x20000000
mov dword [esp], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
call sym.wininet.dll_HttpAddRequestHeadersW
sub esp, 0x10
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebp
call sym.wininet.dll_HttpSendRequestW
sub esp, 0x14
test eax, eax
jne 0x6c12dab2
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x3e5
je 0x6c12dab2
mov dword [esp], ebp
xor ebp, ebp
call sym.wininet.dll_InternetCloseHandle
sub esp, 4
jmp 0x6c12d7e4
xor eax, eax
jmp 0x6c12d55d
mov dword [esp + 4], ebx
mov dword [esp], 0x6c14b9a0
call fcn.6c123dd0
jmp 0x6c12d936
mov dword [esp + 0x44], 0
jmp 0x6c12d66c
mov dword [esp + 0x3c], 0
jmp 0x6c12d610
mov eax, 0x6c14b9a6
jmp 0x6c12d936
mov esi, 0x6c14b9a6
jmp 0x6c12d8f6
xor ebx, ebx
mov eax, 2
jmp 0x6c12d640
xor ebx, ebx
mov eax, 2
jmp 0x6c12d5e0
mov eax, dword [esp + 0x58]
xor ebp, ebp
mov dword [esp], eax
call sym.wininet.dll_InternetCloseHandle
sub esp, 4
jmp 0x6c12d7e4
mov eax, dword [esp + 0x58]
mov dword [esp], eax
call sym.wininet.dll_InternetCloseHandle
sub esp, 4
jmp 0x6c12da1a