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

Disassembly:
sub esp, 0x68
push ebx
push ebp
push esi
mov esi, dword [esp + 0x78]
mov eax, dword [esi + 0x1c]
xor ebx, ebx
add eax, 0xfffffffe
cmp eax, 3
push edi
mov dword [esp + 0x10], ebx
ja case.default.0x487480
jmp dword [eax*4 + 0x487938]
cmp dword [esi + 8], ebx
je 0x4874f3
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
push ecx
mov ecx, dword [esi]
call fcn.004c5560
mov edi, eax
cmp edi, ebx
je 0x4874f3
push 0x3a
push edi
call fcn.0043bbd0
add esp, 8
test eax, eax
jne 0x4874cd
push edi
push str.http:__
call fcn.0043bac0
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x4874cd
push edi
call fcn.005dd350
add esp, 4
mov edi, ebp
mov eax, dword [esi]
mov edx, dword [eax + 0x864]
push edx
push edi
lea ecx, [eax + 0x640]
call fcn.004bea40
push edi
call fcn.005dd350
add esp, 4
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esi + 0x14]
call fcn.00476670
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
mov ecx, dword [esi]
mov eax, dword [ecx + 0x860]
cmp eax, ebx
je case.default.0x48779d
mov edx, dword [eax + 0xa0]
cmp dword [edx + 0x48], ebx
je case.default.0x48779d
cmp dword [esi + 8], 1
jl case.default.0x48779d
mov eax, dword [esi + 0xc]
mov edx, dword [eax]
push edx
call fcn.00405d20
mov ecx, dword [esi]
push 1
mov edi, eax
call fcn.004b5490
cmp dword [esi + 8], 2
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
jl 0x4875a9
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [esi]
call fcn.004c5560
mov ebp, eax
push ebp
lea ecx, [esp + 0x28]
call fcn.0043b5c0
push ebp
call fcn.005dd350
add esp, 4
push 0x5f8ab0
lea ecx, [esp + 0x28]
call fcn.0043b520
test al, al
jne 0x4875a0
push str.undefined
lea ecx, [esp + 0x28]
call fcn.0043b520
test al, al
je 0x4875a9
lea ecx, [esp + 0x24]
call fcn.00423ae0
cmp edi, ebx
mov ecx, dword [esi]
mov edx, dword [ecx]
lea eax, [esp + 0x24]
push eax
push ebx
push ebx
push 1
je 0x4875ce
push edi
lea eax, [esp + 0x90]
push eax
call dword [edx + 0x70]
mov ecx, dword [eax]
mov dword [esp + 0x7c], ebx
jmp 0x4875dd
push ebx
lea eax, [esp + 0x2c]
push eax
call dword [edx + 0x74]
mov ecx, dword [eax]
mov dword [esp + 0x18], ebx
mov dword [esi + 0x14], ecx
mov ecx, dword [esi]
push ebx
call fcn.004b5490
lea ecx, [esp + 0x24]
call fcn.00423ae0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
mov ecx, dword [esi]
mov eax, dword [ecx + 0x860]
cmp eax, ebx
je case.default.0x487480
mov edx, dword [eax + 0xa0]
cmp dword [edx + 0x48], ebx
je case.default.0x487480
cmp dword [esi + 8], ebx
je case.default.0x487480
mov eax, dword [esi + 0xc]
mov edx, dword [eax]
push edx
call fcn.004c5560
mov ebp, eax
push str.http:
push ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.0043b790
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x48765e
push str.http:
lea ecx, [esp + 0x28]
call fcn.0043b210
jmp 0x487689
push str.https:
push ebp
call fcn.0043b790
mov edi, eax
add esp, 8
cmp edi, ebx
lea ecx, [esp + 0x24]
je 0x487682
push str.https:
call fcn.0043b210
jmp 0x487689
call fcn.00423ae0
mov edi, ebp
push edi
lea ecx, [esp + 0x34]
call fcn.0043be10
push 1
lea ecx, [esp + 0x34]
call fcn.0043c060
mov edi, eax
cmp edi, ebx
je 0x4876ae
push edi
lea ecx, [esp + 0x28]
call fcn.0043b6e0
mov ecx, dword [esi]
call fcn.004b4e00
mov ecx, dword [esi]
push eax
lea eax, [esp + 0x28]
push eax
push ecx
lea ecx, [esi + 0x14]
call fcn.00476690
push ebp
call fcn.005dd350
push edi
call fcn.005dd350
add esp, 8
lea ecx, [esp + 0x30]
call fcn.00423ae0
lea ecx, [esp + 0x24]
call fcn.00423ae0
mov eax, dword [esi + 0x1c]
sub eax, ebx
je 0x487808
dec eax
jne case.default.0x48779d
mov byte [esp + 0x7c], 1
mov edx, dword [esi]
mov ebp, dword [edx + 0x864]
cmp ebp, ebx
mov dword [esp + 0x18], ebp
je 0x487923
mov eax, dword [ebp + 0xa0]
cmp eax, ebx
mov ecx, dword [ebp + 0xa4]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
je 0x487923
cmp dword [esi + 8], ebx
mov dword [esp + 0x14], ebx
jle 0x487923
jmp 0x487740
mov edx, dword [esi + 0xc]
mov eax, dword [esp + 0x14]
mov ecx, dword [edx + eax*4]
push ecx
mov ecx, dword [esi]
call fcn.004c5560
mov edi, eax
cmp edi, ebx
je 0x48790f
cmp byte [edi], 0x2a
jne 0x48783b
cmp byte [edi + 1], bl
jne 0x48783b
mov edx, dword [esp + 0x7c]
push edx
mov ecx, ebp
call fcn.00486480
jmp 0x4878fe
mov edi, dword [esi]
mov ecx, dword [edi + 0x860]
cmp ecx, ebx
je case.default.0x487480
call fcn.00486be0
cmp eax, 3
ja case.default.0x48779d
jmp dword [eax*4 + 0x487948]
push 6
mov eax, 0x5fadf0
push eax
push edi
lea ecx, [esi + 0x14]
call fcn.004766d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
push 6
mov eax, str.localWithFile
push eax
push edi
lea ecx, [esi + 0x14]
call fcn.004766d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
push 6
mov eax, str.localWithNetwork
push eax
push edi
lea ecx, [esi + 0x14]
call fcn.004766d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
push 6
mov eax, str.localTrusted
push eax
push edi
lea ecx, [esi + 0x14]
call fcn.004766d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
mov edx, dword [esi]
mov eax, dword [edx + 0x864]
cmp eax, ebx
je 0x4876f9
mov ecx, dword [eax + 0xa0]
cmp dword [ecx + 0x48], ebx
jne 0x487832
cmp dword [eax + 0x4c], 7
setge al
cmp al, bl
je 0x4876f9
mov byte [esp + 0x7c], bl
jmp 0x4876fe
push 0x3a
push edi
call fcn.0043bbd0
add esp, 8
test eax, eax
jne 0x48786d
push edi
push str.http:__
call fcn.0043bac0
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x487869
push edi
call fcn.005dd350
add esp, 4
mov edi, ebp
mov ebp, dword [esp + 0x18]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
call fcn.004d6530
push ebx
push ebx
push edi
lea ecx, [esp + 0x48]
call fcn.004d7740
cmp dword [ebp + 0x4c], 8
jl 0x4878cb
mov eax, dword [esp + 0x7c]
push eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, ebp
call fcn.00486430
jmp 0x4878f5
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.00486690
mov ecx, dword [esp + 0x20]
cmp ecx, ebx
je 0x4878f5
mov edx, dword [esp + 0x7c]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.00486690
lea ecx, [esp + 0x3c]
call fcn.00435f20
push edi
call fcn.005dd350
add esp, 4
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 8]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x487740
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esi + 0x14]
call fcn.00476670
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret