Function at 0x5259b0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 4], ecx
mov ebx, edx
lea esi, [ebp - 0x40]
xor eax, eax
push ebp
push 0x525b7d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor ecx, ecx
mov edx, 0x3c
call sub.rtl160.bpl__System__FillChar_qqrpvic
mov edi, 0x20
mov dword [esi + 8], edi
lea ecx, [ebp - 0x44]
mov edx, edi
add edx, 1
jae 0x525a08
call sub.rtl160.bpl__System__IntOver_qqrv
test edx, edx
jns 0x525a11
call sub.rtl160.bpl__System__BoundErr_qqrv
xor eax, eax
call sub.rtl160.bpl__System_StringOfChar_qqrbi
mov eax, dword [ebp - 0x44]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
mov dword [esi + 4], eax
mov edi, pe_nt_image_headers32
mov dword [esi + 0x14], edi
lea ecx, [ebp - 0x48]
mov edx, edi
add edx, 1
jae 0x525a3a
call sub.rtl160.bpl__System__IntOver_qqrv
test edx, edx
jns 0x525a43
call sub.rtl160.bpl__System__BoundErr_qqrv
xor eax, eax
call sub.rtl160.bpl__System_StringOfChar_qqrbi
mov eax, dword [ebp - 0x48]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
mov dword [esi + 0x10], eax
mov edi, 0x80
mov dword [esi + 0x20], edi
lea ecx, [ebp - 0x4c]
mov edx, edi
add edx, 1
jae 0x525a6c
call sub.rtl160.bpl__System__IntOver_qqrv
test edx, edx
jns 0x525a75
call sub.rtl160.bpl__System__BoundErr_qqrv
xor eax, eax
call sub.rtl160.bpl__System_StringOfChar_qqrbi
mov eax, dword [ebp - 0x4c]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
mov dword [esi + 0x1c], eax
mov edi, 0x80
mov dword [esi + 0x28], edi
lea ecx, [ebp - 0x50]
mov edx, edi
add edx, 1
jae 0x525a9e
call sub.rtl160.bpl__System__IntOver_qqrv
test edx, edx
jns 0x525aa7
call sub.rtl160.bpl__System__BoundErr_qqrv
xor eax, eax
call sub.rtl160.bpl__System_StringOfChar_qqrbi
mov eax, dword [ebp - 0x50]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
mov dword [esi + 0x24], eax
mov edi, 0x800
mov dword [esi + 0x30], edi
lea ecx, [ebp - 0x54]
mov edx, edi
add edx, 1
jae 0x525ad0
call sub.rtl160.bpl__System__IntOver_qqrv
test edx, edx
jns 0x525ad9
call sub.rtl160.bpl__System__BoundErr_qqrv
xor eax, eax
call sub.rtl160.bpl__System_StringOfChar_qqrbi
mov eax, dword [ebp - 0x54]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
mov dword [esi + 0x2c], eax
mov edi, 0x800
mov dword [esi + 0x38], edi
lea ecx, [ebp - 0x58]
mov edx, edi
add edx, 1
jae 0x525b02
call sub.rtl160.bpl__System__IntOver_qqrv
test edx, edx
jns 0x525b0b
call sub.rtl160.bpl__System__BoundErr_qqrv
xor eax, eax
call sub.rtl160.bpl__System_StringOfChar_qqrbi
mov eax, dword [ebp - 0x58]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
mov dword [esi + 0x34], eax
mov dword [esi], 0x3c
push esi
push 0x10000000
mov eax, ebx
call sub.rtl160.bpl__System__UStrLen_qqrx20System_UnicodeString
test eax, eax
jns 0x525b39
call sub.rtl160.bpl__System__BoundErr_qqrv
push eax
mov eax, ebx
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.wininet.dll_InternetCrackUrlW
test eax, eax
je 0x525b58
mov eax, dword [ebp - 4]
mov edx, dword [esi + 0x10]
call sub.rtl160.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
jmp 0x525b62
mov eax, dword [ebp - 4]
mov edx, ebx
call sub.rtl160.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x525b84
lea eax, [ebp - 0x58]
mov edx, 6
call sub.rtl160.bpl__System__UStrArrayClr_qqrpvi
ret