Function at 0x10039fb
Capabilities:
Parse url

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x9ac
mov eax, dword [0x10180ac]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x95c], eax
mov eax, dword [ebp + 0x18]
push ebx
mov dword [ebp - 0x958], eax
mov eax, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x970], eax
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x420], eax
push 0xf
mov eax, 0x80
mov dword [ebp - 0x424], eax
lea ecx, [ebp - 0x52c]
mov dword [ebp - 0x534], eax
mov dword [ebp - 0x530], ecx
pop ecx
xor eax, eax
lea edi, [ebp - 0x9ac]
rep stosd dword es:[edi], eax
xor ebx, ebx
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x99c], eax
lea eax, [ebp - 0x9ac]
push eax
push ebx
push ebx
push edx
mov dword [ebp - 0x950], ebx
mov dword [ebp - 0x954], ebx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x960], edx
mov dword [ebp - 0x53c], ebx
mov dword [ebp - 0x538], ebx
mov dword [ebp - 0x9ac], 0x3c
mov dword [ebp - 0x998], 0x104
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x1003af2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1003add
call esi
mov edi, eax
jmp 0x1003e6e
call esi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
jmp 0x1003e6e
push dword [ebp - 0x998]
lea ecx, [ebp - 0x31c]
push dword [ebp - 0x99c]
call fcn.010036da
mov edi, dword [ebp - 0x31c]
cmp edi, ebx
jl 0x1003e63
lea eax, [ebp - 0x968]
push eax
lea eax, [ebp - 0x964]
push eax
lea eax, [ebp - 0x42c]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x964], ebx
push esi
mov dword [ebp - 0x968], ebx
call fcn.0100a786
mov edi, eax
cmp edi, ebx
jl 0x1003e63
cmp dword [ebp - 0x968], ebx
je 0x1003b5d
mov edi, 0x80070005
jmp 0x1003e63
cmp dword [ebp - 0x964], ebx
jne 0x1003b88
push 0xffffffffffffffff
lea ecx, [ebp - 0x31c]
call fcn.0100357f
push eax
lea ecx, [ebp - 0x42c]
call fcn.0100360f
mov dword [ebp - 0x964], 1
mov edi, dword [ebp - 0x42c]
cmp edi, ebx
jl 0x1003e63
cmp dword [ebp + 0x10], ebx
je 0x1003d23
lea eax, [ebp - 0x53c]
push eax
push 0x10014f4
push ebx
call fcn.0100a9b3
test eax, eax
push 0xffffffffffffffff
mov dword [ebp - 0x31c], ebx
mov dword [ebp - 0x318], ebx
jl 0x1003c3f
lea ecx, [ebp - 0x53c]
call fcn.0100357f
push eax
lea ecx, [ebp - 0x31c]
call fcn.0100360f
mov edi, dword [ebp - 0x31c]
cmp edi, ebx
lea ecx, [ebp - 0x31c]
jl 0x1003e69
push ebx
call fcn.0100357f
push eax
call fcn.0100291d
mov esi, eax
cmp esi, ebx
je 0x1003c13
lea ecx, [ebp - 0x31c]
call fcn.0100357f
sub esi, eax
dec esi
dec esi
sar esi, 1
jmp 0x1003c19
mov esi, dword [ebp - 0x318]
push esi
lea ecx, [ebp - 0x31c]
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x42c], ebx
call fcn.0100357f
push eax
lea ecx, [ebp - 0x42c]
call fcn.0100360f
jmp 0x1003c50
push 0x10014e0
push ebx
lea ecx, [ebp - 0x31c]
call fcn.010033ff
push 0xffffffffffffffff
push 0x10014cc
push ebx
lea ecx, [ebp - 0x42c]
call fcn.010033ff
mov edi, dword [ebp - 0x42c]
cmp edi, ebx
lea ecx, [ebp - 0x31c]
jl 0x1003e69
call fcn.0100357f
push 7
mov esi, 0x10014bc
push esi
lea ecx, [ebp - 0x31c]
mov edi, eax
call fcn.0100357f
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
lea ecx, [ebp - 0x31c]
je 0x1003cb1
call fcn.0100357f
mov edi, eax
add edi, 0xe
jmp 0x1003cdb
push 8
push 0x10014a8
call fcn.0100357f
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x1003cdb
lea ecx, [ebp - 0x31c]
call fcn.0100357f
mov edi, eax
add edi, 0x10
push 0xffffffffffffffff
push esi
push ebx
lea ecx, [ebp - 0x53c]
mov dword [ebp - 0x538], ebx
mov dword [ebp - 0x53c], ebx
call fcn.010033ff
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x53c]
call fcn.0100360f
mov edi, dword [ebp - 0x53c]
cmp edi, ebx
jl 0x1003e63
lea ecx, [ebp - 0x53c]
call fcn.0100357f
mov dword [ebp - 0x960], eax
push dword [ebp - 0x960]
call dword [sym.imp.msvcrt.dll_wcslen]
mov edi, eax
pop ecx
inc edi
push edi
lea ecx, [ebp - 0x94c]
call fcn.010035e4
push edi
lea ecx, [ebp - 0x744]
call fcn.010035e4
cmp dword [ebp - 0x744], ebx
je 0x1003e48
cmp dword [ebp - 0x94c], ebx
je 0x1003e48
lea eax, [ebp - 0x96c]
push eax
push edi
push dword [ebp - 0x744]
mov dword [ebp - 0x96c], 0x50
push edi
push dword [ebp - 0x94c]
push dword [ebp - 0x960]
call fcn.0100a080
mov edi, eax
cmp edi, ebx
jl 0x1003e4d
push 0x40
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x1003db2
mov ecx, eax
call fcn.01002e7b
mov dword [ebp - 0x950], eax
jmp 0x1003db8
mov dword [ebp - 0x950], ebx
cmp dword [ebp - 0x950], ebx
je 0x1003e48
mov ecx, dword [ebp - 0x950]
call fcn.0100af62
lea eax, [ebp - 0x954]
push eax
lea ecx, [ebp - 0x42c]
call fcn.0100357f
mov ecx, dword [ebp - 0x950]
push eax
push dword [ebp - 0x744]
push dword [ebp + 0x10]
call fcn.0100cb15
test eax, eax
jge 0x1003e01
mov edi, 0x80070002
jmp 0x1003e4d
mov ecx, dword [ebp - 0x954]
mov eax, dword [ecx]
push 1
push dword [ebp - 0x95c]
call dword [eax + 0xc]
mov edi, eax
cmp edi, ebx
jl 0x1003e4d
mov ecx, dword [ebp - 0x954]
push dword [ebp - 0x958]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov edi, eax
cmp edi, ebx
jl 0x1003e4d
mov ecx, dword [ebp - 0x954]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [ebp - 0x970]
mov dword [ecx], eax
xor edi, edi
jmp 0x1003e4d
mov edi, 0x8007000e
lea ecx, [ebp - 0x744]
call fcn.01002b58
lea ecx, [ebp - 0x94c]
call fcn.01002b58
lea ecx, [ebp - 0x31c]
call fcn.01002b7b
lea ecx, [ebp - 0x53c]
call fcn.01002b7b
lea ecx, [ebp - 0x42c]
call fcn.01002b7b
mov eax, dword [ebp - 0x954]
cmp eax, ebx
je 0x1003e9a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x954], ebx
mov ecx, dword [ebp - 0x950]
cmp ecx, ebx
je 0x1003eab
push 1
call fcn.01002f02
cmp edi, ebx
jge 0x1003f17
mov eax, dword [ebp - 0x95c]
cmp dword [eax], ebx
jge 0x1003ebd
xor eax, eax
jmp 0x1003ec0
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x95c]
lea esi, [eax + eax]
call fcn.0100357f
cmp esi, ebx
je 0x1003ed8
mov byte [eax], bl
inc eax
dec esi
jne 0x1003ed2
mov eax, dword [ebp - 0x958]
cmp dword [eax], ebx
jge 0x1003ee6
xor eax, eax
jmp 0x1003ee9
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x958]
lea esi, [eax + eax]
call fcn.0100357f
cmp esi, ebx
je 0x1003f01
mov byte [eax], bl
inc eax
dec esi
jne 0x1003efb
mov eax, dword [ebp - 0x95c]
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov eax, dword [ebp - 0x958]
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.01007f54
leave
ret 0x18