Function at 0x496149
Capabilities:
Create process on windows
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2048
call fcn.00433a00
push ebx
push esi
push edi
push dword [0x4cb04c]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edi, dword [ebp + 8]
xor ebx, ebx
test edi, edi
jne 0x496373
mov byte [esi + 0x131], 1
cmp dword [esi + 0x138], ebx
je 0x496373
cmp byte [esi + 0x130], bl
je 0x496361
mov ebx, dword [esi + 0x134]
cmp byte [ebx + 0xb7b5], 0
je 0x496359
lea eax, [ebx + 0x6758]
test eax, eax
je 0x496359
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4961b9
sub ecx, edx
je 0x496359
push 0x7ff
mov byte [ebp - 0x2044], al
lea eax, [ebp - 0x2043]
push 0
push eax
call fcn.0042a910
add esp, 0xc
mov byte [ebp - 0x1044], 0
lea eax, [ebp - 0x1043]
push 0x3ff
push 0
push eax
call fcn.0042a910
add esp, 0xc
mov byte [ebp - 0x1844], 0
lea eax, [ebp - 0x1843]
push 0x3ff
push 0
push eax
call fcn.0042a910
add esp, 0xc
mov byte [ebp - 0x444], 0
lea eax, [ebp - 0x443]
push 0x3ff
push 0
push eax
call fcn.0042a910
add esp, 0xc
mov byte [ebp - 0x844], 0
lea eax, [ebp - 0x843]
push 0x3ff
push 0
push eax
call fcn.0042a910
add esp, 0xc
mov byte [ebp - 0xc44], 0
lea eax, [ebp - 0xc43]
push 0x3ff
push 0
push eax
call fcn.0042a910
add esp, 0xc
mov byte [ebp - 0x1444], 0
lea eax, [ebp - 0x1443]
push 0x3ff
push 0
push eax
call fcn.0042a910
lea eax, [ebp - 0x1044]
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x2044]
lea eax, [ebp - 0x1844]
add esp, 0xc
mov dword [ebp - 0x30], eax
lea ecx, [ebx + 0x6758]
lea eax, [ebp - 0x444]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x844]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0xc44]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1444]
mov dword [ebp - 0x24], eax
mov eax, 0x400
push ebx
mov dword [ebp - 8], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp + 8]
push fcn.0046cde8
push eax
lea eax, [ebp - 0x44]
push eax
push 0x103
call fcn.0046cd5e
add esp, 0x14
lea ecx, [ebp - 0x2044]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x496316
lea eax, [ebp - 0x40]
xor ebx, ebx
push eax
push ebx
sub ecx, edx
lea eax, [ebp - 0x2044]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
cmp dword [ebp - 0x34], 3
je 0x496340
cmp dword [ebp - 0x34], 4
jne 0x49635b
push 1
push ebx
push ebx
lea eax, [ebp - 0x2044]
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x49635b
xor ebx, ebx
push ebx
push ebx
push 0x10
jmp 0x496365
push ebx
push ebx
push 0x19
mov edx, dword [esi + 0x134]
pop ecx
call fcn.0046f593
pop ecx
pop ecx
cmp byte [esi + 0x132], 0
je 0x4963a0
cmp edi, 1
jne 0x4963a0
cmp byte [esi + 0x12e], 0
mov edx, dword [esi + 0x134]
push ebx
push ebx
je 0x496396
push 0x14
jmp 0x496398
push 0x13
pop ecx
call fcn.0046f593
pop ecx
pop ecx
cmp dword [esi + 0x100], ebx
je 0x4963b8
cmp byte [esi + 0x132], 0
je 0x4963b8
mov ecx, esi
call fcn.004936ae
or dword [esi + 0xe0], 0xffffffff
push edi
push ebx
push dword [esi + 0xf4]
mov dword [esi + 0x10c], edi
call dword [sym.imp.USER32.dll_SetWindowLongA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4