Function at 0x487730
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.0x487750
jmp dword [eax*4 + 0x487c08]
cmp dword [esi + 8], ebx
je 0x4877c3
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
push ecx
mov ecx, dword [esi]
call fcn.004c5ef0
mov edi, eax
cmp edi, ebx
je 0x4877c3
push 0x3a
push edi
call fcn.0043bd40
add esp, 8
test eax, eax
jne 0x48779d
push edi
push str.http:__
call fcn.0043bc30
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x48779d
push edi
call fcn.005ddc00
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.004bf3e0
push edi
call fcn.005ddc00
add esp, 4
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esi + 0x14]
call fcn.00476850
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.0x487a6d
mov edx, dword [eax + 0xa0]
cmp dword [edx + 0x48], ebx
je case.default.0x487a6d
cmp dword [esi + 8], 1
jl case.default.0x487a6d
mov eax, dword [esi + 0xc]
mov edx, dword [eax]
push edx
call fcn.00405d00
mov ecx, dword [esi]
push 1
mov edi, eax
call fcn.004b5b00
cmp dword [esi + 8], 2
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
jl 0x487879
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [esi]
call fcn.004c5ef0
mov ebp, eax
push ebp
lea ecx, [esp + 0x28]
call fcn.0043b730
push ebp
call fcn.005ddc00
add esp, 4
push 0x5f8aa0
lea ecx, [esp + 0x28]
call fcn.0043b690
test al, al
jne 0x487870
push str.undefined
lea ecx, [esp + 0x28]
call fcn.0043b690
test al, al
je 0x487879
lea ecx, [esp + 0x24]
call fcn.00402690
cmp edi, ebx
mov ecx, dword [esi]
mov edx, dword [ecx]
lea eax, [esp + 0x24]
push eax
push ebx
push ebx
push 1
je 0x48789e
push edi
lea eax, [esp + 0x90]
push eax
call dword [edx + 0x70]
mov ecx, dword [eax]
mov dword [esp + 0x7c], ebx
jmp 0x4878ad
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.004b5b00
lea ecx, [esp + 0x24]
call fcn.00402690
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.0x487750
mov edx, dword [eax + 0xa0]
cmp dword [edx + 0x48], ebx
je case.default.0x487750
cmp dword [esi + 8], ebx
je case.default.0x487750
mov eax, dword [esi + 0xc]
mov edx, dword [eax]
push edx
call fcn.004c5ef0
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.0043b900
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x48792e
push str.http:
lea ecx, [esp + 0x28]
call fcn.0043b380
jmp 0x487959
push str.https:
push ebp
call fcn.0043b900
mov edi, eax
add esp, 8
cmp edi, ebx
lea ecx, [esp + 0x24]
je 0x487952
push str.https:
call fcn.0043b380
jmp 0x487959
call fcn.00402690
mov edi, ebp
push edi
lea ecx, [esp + 0x34]
call fcn.0043bf80
push 1
lea ecx, [esp + 0x34]
call fcn.0043c1d0
mov edi, eax
cmp edi, ebx
je 0x48797e
push edi
lea ecx, [esp + 0x28]
call fcn.0043b850
mov ecx, dword [esi]
call fcn.004b5360
mov ecx, dword [esi]
push eax
lea eax, [esp + 0x28]
push eax
push ecx
lea ecx, [esi + 0x14]
call fcn.00476870
push ebp
call fcn.005ddc00
push edi
call fcn.005ddc00
add esp, 8
lea ecx, [esp + 0x30]
call fcn.00402690
lea ecx, [esp + 0x24]
call fcn.00402690
mov eax, dword [esi + 0x1c]
sub eax, ebx
je 0x487ad8
dec eax
jne case.default.0x487a6d
mov byte [esp + 0x7c], 1
mov edx, dword [esi]
mov ebp, dword [edx + 0x864]
cmp ebp, ebx
mov dword [esp + 0x18], ebp
je 0x487bf3
mov eax, dword [ebp + 0xa0]
cmp eax, ebx
mov ecx, dword [ebp + 0xa4]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
je 0x487bf3
cmp dword [esi + 8], ebx
mov dword [esp + 0x14], ebx
jle 0x487bf3
jmp 0x487a10
mov edx, dword [esi + 0xc]
mov eax, dword [esp + 0x14]
mov ecx, dword [edx + eax*4]
push ecx
mov ecx, dword [esi]
call fcn.004c5ef0
mov edi, eax
cmp edi, ebx
je 0x487bdf
cmp byte [edi], 0x2a
jne 0x487b0b
cmp byte [edi + 1], bl
jne 0x487b0b
mov edx, dword [esp + 0x7c]
push edx
mov ecx, ebp
call fcn.00486720
jmp 0x487bce
mov edi, dword [esi]
mov ecx, dword [edi + 0x860]
cmp ecx, ebx
je case.default.0x487750
call fcn.00486eb0
cmp eax, 3
ja case.default.0x487a6d
jmp dword [eax*4 + 0x487c18]
push 6
mov eax, 0x5fadf0
push eax
push edi
lea ecx, [esi + 0x14]
call fcn.004768b0
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.004768b0
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.004768b0
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.004768b0
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 0x4879c9
mov ecx, dword [eax + 0xa0]
cmp dword [ecx + 0x48], ebx
jne 0x487b02
cmp dword [eax + 0x4c], 7
setge al
cmp al, bl
je 0x4879c9
mov byte [esp + 0x7c], bl
jmp 0x4879ce
push 0x3a
push edi
call fcn.0043bd40
add esp, 8
test eax, eax
jne 0x487b3d
push edi
push str.http:__
call fcn.0043bc30
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x487b39
push edi
call fcn.005ddc00
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.004d6d20
push ebx
push ebx
push edi
lea ecx, [esp + 0x48]
call fcn.004d7f30
cmp dword [ebp + 0x4c], 8
jl 0x487b9b
mov eax, dword [esp + 0x7c]
push eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, ebp
call fcn.004866d0
jmp 0x487bc5
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.00486930
mov ecx, dword [esp + 0x20]
cmp ecx, ebx
je 0x487bc5
mov edx, dword [esp + 0x7c]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.00486930
lea ecx, [esp + 0x3c]
call fcn.00436090
push edi
call fcn.005ddc00
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 0x487a10
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esi + 0x14]
call fcn.00476850
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret