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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x12c
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x1c], 0
je 0x50a0ad
cmp dword [ebp - 0x1c], 1
je 0x509eee
jmp 0x50a0a8
mov eax, dword [ebp + 0x24]
fld qword [eax]
mov eax, dword [ebp + 0x18]
fld qword [eax]
mov eax, dword [ebp + 0x50]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x40]
fld qword [eax]
fstp qword [ebp - 0x38]
mov eax, dword [ebp + 0x64]
mov ecx, dword [eax]
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp + 0x44]
mov ebx, dword [eax]
mov dword [ebp - 0x3c], ebx
mov eax, dword [ebp + 0x2c]
fld qword [eax]
fstp qword [ebp - 0x48]
mov eax, dword [ebp + 0x60]
mov esi, dword [eax]
mov dword [ebp - 0x40], esi
mov eax, dword [ebp + 0x48]
lea edi, [eax + 0x24]
mov dword [ebp - 0x4c], edi
mov eax, dword [ebp + 0x20]
mov edx, dword [eax]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp + 0x24]
fld qword [eax]
fstp qword [ebp - 0x58]
mov eax, dword [ebp + 0x1c]
fld qword [eax]
mov eax, dword [ebp + 0x38]
mov ecx, dword [eax]
mov dword [ebp - 0x5c], ecx
mov eax, dword [ebp + 0x40]
fld qword [eax]
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax]
mov dword [ebp - 0x60], ebx
mov eax, dword [ebp + 0x28]
mov esi, dword [eax]
mov dword [ebp - 0x64], esi
mov eax, dword [ebp + 0x5c]
mov edi, dword [eax]
mov dword [ebp - 0x68], edi
mov eax, dword [ebp + 0x38]
mov edx, dword [eax]
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x70], ecx
mov eax, dword [ebp + 0x30]
mov ebx, dword [eax]
mov dword [ebp - 0x74], ebx
mov eax, dword [ebp + 0x1c]
fld qword [eax]
mov eax, dword [ebp + 0x40]
fld qword [eax]
mov eax, dword [ebp + 0x4c]
mov esi, dword [eax]
mov dword [ebp - 0x78], esi
mov eax, dword [ebp + 0x14]
mov edi, dword [eax]
mov dword [ebp - 0x7c], edi
mov eax, dword [ebp + 0x14]
mov edi, dword [eax]
mov eax, dword [ebp + 0x3c]
mov esi, dword [eax]
mov eax, dword [ebp + 0x5c]
mov ebx, dword [eax]
mov eax, dword [ebp + 0x40]
fld qword [eax]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ebp + 0x54]
mov edx, dword [eax]
mov eax, dword [ebp + 0x34]
fld qword [eax]
fxch st(7)
fstp qword [esp + 0xa4]
fxch st(5)
fstp qword [esp + 0x9c]
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x98], eax
fld qword [ebp - 0x38]
fstp qword [esp + 0x90]
mov dword [esp + 0x8c], str.vivaldi.exe
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x88], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0x84], eax
fld qword [ebp - 0x48]
fstp qword [esp + 0x7c]
mov eax, dword [ebp - 0x40]
mov dword [esp + 0x78], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp + 0x74], eax
mov eax, dword [ebp - 0x50]
mov dword [esp + 0x70], eax
fld qword [ebp - 0x58]
fstp qword [esp + 0x68]
fxch st(3)
fstp qword [esp + 0x60]
fxch st(1)
mov eax, dword [ebp - 0x5c]
mov dword [esp + 0x5c], eax
fstp qword [esp + 0x54]
mov eax, dword [ebp - 0x60]
mov dword [esp + 0x50], eax
mov eax, dword [ebp - 0x64]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp - 0x68]
mov dword [esp + 0x48], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp + 0x44], eax
mov eax, dword [ebp - 0x70]
mov dword [esp + 0x40], eax
mov eax, dword [ebp - 0x74]
mov dword [esp + 0x3c], eax
fstp qword [esp + 0x34]
fstp qword [esp + 0x2c]
mov eax, dword [ebp - 0x78]
mov dword [esp + 0x28], eax
mov eax, dword [ebp - 0x7c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebx
fstp qword [esp + 0x10]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
fstp qword [esp]
call sym._StrCmpiW
mov edx, dword [ebp + 0x58]
mov dword [edx], eax
mov dword [ebp - 0x1c], 0
nop
jmp 0x509ed9
nop
add esp, 0x12c
pop ebx
pop esi
pop edi
pop ebp
ret