Function at 0x407e00
Capabilities:
Parse url

Disassembly:
push 0xffffffffffffffff
push 0x41a8c7
mov eax, dword fs:[0]
push eax
sub esp, 0x2f8
mov eax, dword [0x4201f4]
xor eax, esp
mov dword [esp + 0x2f4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4201f4]
xor eax, esp
push eax
lea eax, [esp + 0x30c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x31c]
push str.amazonaws.com
push ebp
call fcn.0040cc00
add esp, 8
test eax, eax
jne 0x408362
xor ebx, ebx
push 0xff
lea eax, [esp + 0x10d]
push ebx
push eax
mov byte [esp + 0x114], bl
call fcn.0040a800
lea ecx, [esp + 0x114]
push 0x10
push ecx
call fcn.004070f0
push 0xff
lea edx, [esp + 0x221]
push ebx
push edx
mov byte [esp + 0x228], bl
call fcn.0040a800
lea eax, [esp + 0x40]
push eax
call fcn.0040cc95
mov ecx, dword [esp + 0x44]
mov eax, 0x88888889
mul ecx
shr edx, 4
mov eax, edx
shl eax, 4
sub eax, edx
add eax, eax
sub ecx, eax
add ecx, 0x1e
push ecx
lea ecx, [esp + 0x230]
push ecx
call fcn.004070f0
mov edx, dword [0x420140]
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
add esp, 0x2c
push edx
push 0x40
call esi
mov edi, eax
mov eax, dword [0x420140]
push eax
push 0x40
mov dword [esp + 0x30], edi
call esi
mov ecx, dword [0x420140]
push ecx
push 0x40
mov dword [esp + 0x20], eax
call esi
mov edx, dword [0x420140]
push edx
push 0x40
mov dword [esp + 0x24], eax
call esi
mov dword [esp + 0x14], eax
mov eax, dword [0x420140]
push eax
push 0x40
call esi
mov ecx, eax
mov eax, dword [0x420140]
xor edx, edx
mov word [esp + 0x44], dx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x2c], 0x3c
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], eax
lea eax, [esp + 0x2c]
push eax
push ebx
push ebx
push ebp
mov dword [esp + 0x70], edx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x408339
mov edi, 0xf
lea eax, [esp + 0x108]
mov dword [esp + 0xb0], edi
mov dword [esp + 0xac], ebx
mov byte [esp + 0x9c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x407fb5
sub eax, edx
push eax
lea ecx, [esp + 0x10c]
push ecx
lea ecx, [esp + 0xa0]
call fcn.00401dc0
push 7
push str.script
lea ecx, [esp + 0xa0]
mov dword [esp + 0x31c], ebx
call fcn.00407630
mov edx, dword [esp + 0x58]
mov eax, edx
mov dword [esp + 0xe8], edi
mov dword [esp + 0xe4], ebx
mov byte [esp + 0xd4], bl
lea esi, [eax + 1]
jmp 0x408010
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x408010
sub eax, esi
push eax
push edx
lea ecx, [esp + 0xd8]
call fcn.00401dc0
push 1
push ebx
push 0x41bbd4
lea ecx, [esp + 0xdc]
mov byte [esp + 0x320], 1
call fcn.00402d00
test eax, eax
jne 0x408056
push 1
push ebx
lea ecx, [esp + 0xd8]
call fcn.00401970
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xd8]
push edx
lea ecx, [esp + 0xa4]
call fcn.00402ff0
mov edx, dword [esp + 0x60]
mov eax, edx
mov dword [esp + 0xcc], edi
mov dword [esp + 0xc8], ebx
mov byte [esp + 0xb8], bl
lea esi, [eax + 1]
jmp 0x408090
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x408090
sub eax, esi
push eax
push edx
lea ecx, [esp + 0xbc]
call fcn.00401dc0
push 1
push ebx
push 0x41bbd8
lea ecx, [esp + 0xc0]
mov byte [esp + 0x320], 2
call fcn.00402d00
test eax, eax
jne 0x4080d6
push 1
push ebx
lea ecx, [esp + 0xbc]
call fcn.00401970
cmp dword [esp + 0xc8], ebx
jbe 0x408109
push 1
push 0x41bbdc
lea ecx, [esp + 0xa0]
call fcn.00407630
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0xa4]
call fcn.00402ff0
push 5
push 0x41bbe0
lea ecx, [esp + 0xa0]
call fcn.00407630
lea eax, [esp + 0x208]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x408126
sub eax, edx
push eax
lea ecx, [esp + 0x20c]
push ecx
lea ecx, [esp + 0xa0]
call fcn.00407630
push 0x100
lea ecx, [esp + 0x70]
call fcn.00401040
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x84], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xbc]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.00401ce0
lea eax, [esp + 0x108]
push eax
lea ecx, [esp + 0x8c]
call fcn.004023f0
cmp dword [esp + 0x38], 4
mov byte [esp + 0x314], 3
mov edx, str.https:__
je 0x4081a4
mov edx, str.http:__
mov eax, edx
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4081c0
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x84]
call fcn.00401dc0
mov esi, dword [esp + 0x3c]
mov eax, esi
mov byte [esp + 0x314], 4
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4081e8
sub eax, edi
push eax
push esi
lea ecx, [esp + 0x84]
call fcn.00407630
push 2
push 0x41bbfc
lea ecx, [esp + 0x84]
call fcn.00407630
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0xf4]
push ecx
lea ecx, [esp + 0x88]
call fcn.00402ff0
push 0x400
push ebx
push ebp
call fcn.0040a800
mov eax, dword [esp + 0x8c]
mov esi, 0x10
add esp, 0xc
cmp dword [esp + 0x94], esi
jae 0x408254
lea eax, [esp + 0x80]
push eax
push 0x400
push ebp
call fcn.0040cb97
add esp, 0xc
cmp dword [esp + 0x94], esi
jb 0x40827c
mov edx, dword [esp + 0x80]
push edx
call fcn.0040a718
add esp, 4
mov edi, 0xf
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
cmp dword [esp + 0x104], esi
jb 0x4082af
mov eax, dword [esp + 0xf0]
push eax
call fcn.0040a718
add esp, 4
mov dword [esp + 0x104], edi
mov dword [esp + 0x100], ebx
mov byte [esp + 0xf0], bl
cmp dword [esp + 0xcc], esi
jb 0x4082dd
mov ecx, dword [esp + 0xb8]
push ecx
call fcn.0040a718
add esp, 4
mov dword [esp + 0xcc], edi
mov dword [esp + 0xc8], ebx
mov byte [esp + 0xb8], bl
cmp dword [esp + 0xe8], esi
jb 0x40830b
mov edx, dword [esp + 0xd4]
push edx
call fcn.0040a718
add esp, 4
mov dword [esp + 0xe8], edi
mov dword [esp + 0xe4], ebx
mov byte [esp + 0xd4], bl
cmp dword [esp + 0xb0], esi
jb 0x408339
mov eax, dword [esp + 0x9c]
push eax
call fcn.0040a718
add esp, 4
mov ecx, dword [esp + 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
mov ecx, dword [esp + 0x24]
push ecx
call esi
mov edx, dword [esp + 0x1c]
push edx
call esi
mov ecx, dword [esp + 0x30c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2f4]
xor ecx, esp
call fcn.0040b213
add esp, 0x304
ret