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

Disassembly:
push 0xffffffffffffffff
push 0x4d9ddf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x288
mov ax, word [0x4ffec0]
push esi
mov esi, ecx
push edi
mov word [esp + 0x88], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x8a]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x88]
push str._span_id
push ecx
mov dword [esp + 0x6c], esi
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll_wcscpy]
mov eax, dword [esp + 0x2b4]
xor edi, edi
add esp, 8
cmp eax, edi
je 0x495cc8
lea edx, [esp + 0x88]
push eax
push edx
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
lea ecx, [esp + 0x6c]
call fcn.0043ce90
mov ecx, esi
mov dword [esp + 0x298], edi
call fcn.0049f8b0
push eax
lea ecx, [esp + 0x70]
call fcn.0043d3d0
mov ecx, dword [esp + 0x78]
cmp ecx, edi
jne 0x495cf5
xor eax, eax
jmp 0x495cfe
mov eax, dword [esp + 0x7c]
sub eax, ecx
sar eax, 2
cmp eax, edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x3c], edi
jle 0x496783
push ebx
push ebp
jmp 0x495d19
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x44]
mov ebp, dword [esp + 0x2a8]
xor edi, edi
mov esi, dword [ecx + eax*4]
cmp ebp, edi
jne 0x495d44
mov ecx, dword [esp + 0x2b4]
push ecx
mov ecx, dword [esp + 0x70]
push esi
call fcn.00495a40
jmp 0x49676c
mov dword [esp + 0x34], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x14], edi
lea ecx, [esp + 0x24]
mov byte [esp + 0x2a0], 5
call fcn.004729d0
lea eax, [esp + 0x24]
mov dword [esp + 0x24], edi
mov edx, dword [esi]
push eax
push esi
call dword [edx + 0x54]
cmp dword [esp + 0x24], edi
je 0x495de7
lea ecx, [esp + 0x38]
call fcn.004729d0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x38], edi
cmp eax, edi
jne 0x495da1
push 0x80004003
call fcn.004d3692
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
lea edx, [esp + 0x38]
push edx
push eax
call dword [ecx + 0x1c]
lea eax, [esp + 0x38]
lea ecx, [esp + 0x14]
push eax
call fcn.00497ec0
cmp eax, edi
jge 0x495dcb
cmp eax, 0x80004002
je 0x495dcb
push eax
call fcn.004d3692
mov eax, dword [esp + 0x24]
cmp eax, edi
jne 0x495de1
push 0x80004003
call fcn.004d3692
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
lea ecx, [esp + 0x34]
call fcn.004729d0
lea eax, [esp + 0x34]
mov dword [esp + 0x34], edi
mov edx, dword [esi]
push eax
push esi
call dword [edx + 0x24]
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x40]
call fcn.00497e40
cmp eax, edi
jge 0x495e1e
cmp eax, 0x80004002
je 0x495e1e
push eax
call fcn.004d3692
cmp dword [esp + 0x3c], edi
je 0x496737
lea ecx, [esp + 0x14]
call fcn.004729d0
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], edi
cmp eax, edi
jne 0x495e4b
push 0x80004003
call fcn.004d3692
mov eax, dword [esp + 0x3c]
mov edx, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [edx + 0xa4]
cmp dword [esp + 0x14], edi
je 0x496737
mov ebx, dword [sym.imp.MSVCRT.dll_wcslen]
push ebp
call ebx
mov edx, dword [esp + 0x2b4]
mov esi, eax
push edx
inc esi
call ebx
add esp, 8
mov dword [esp + 0x68], eax
push esi
push ebp
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov dword [esp + 0x70], eax
push 0xc
mov byte [esp + 0x2a4], 6
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, edi
mov byte [esp + 0x2a0], 7
je 0x495ebc
push str.Character
mov ecx, eax
call fcn.00482bc0
jmp 0x495ebe
xor eax, eax
cmp eax, edi
mov byte [esp + 0x2a0], 6
mov dword [esp + 0x58], eax
jne 0x495edc
push 0x8007000e
call fcn.004d3692
mov eax, dword [esp + 0x58]
cmp eax, edi
mov byte [esp + 0x2a0], 8
je 0x495eec
mov esi, dword [eax]
jmp 0x495eee
xor esi, esi
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x495f04
push 0x80004003
call fcn.004d3692
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x4c]
push edx
push 1
push esi
push eax
call dword [ecx + 0x48]
lea ecx, [esp + 0x58]
call fcn.00482b70
push str.Textedit
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x14]
mov byte [esp + 0x2a0], 9
cmp eax, edi
jne 0x495f4a
push 0x80004003
call fcn.004d3692
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x4c]
push edx
push 1
push esi
push eax
call dword [ecx + 0x4c]
push esi
mov byte [esp + 0x2a4], 6
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ebx, dword [esp + 0x2b4]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x495f8a
push 0x80004003
call fcn.004d3692
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x70]
mov ecx, dword [eax]
lea edx, [esp + 0x4a]
push edx
mov edx, dword [esp + 0x2b0]
push edx
push edi
push esi
push eax
call dword [ecx + 0x64]
test eax, eax
jne 0x496730
cmp word [esp + 0x4a], 0xffff
jne 0x496730
mov dword [esp + 0x40], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2a0], 0xc
call fcn.004729d0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], edi
cmp eax, edi
jne 0x495fee
push 0x80004003
call fcn.004d3692
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [ecx + 0x28]
cmp dword [esp + 0x1c], edi
je 0x49663f
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x496019
push 0x80004003
call fcn.004d3692
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x40]
push edx
push eax
call dword [ecx + 0x24]
cmp dword [esp + 0x68], edi
je 0x49659f
push str._span_id
call ebp
push eax
push str._span_id
lea ecx, [esp + 0x20]
call fcn.004967c0
push ebx
call ebp
push eax
push ebx
lea ecx, [esp + 0x20]
call fcn.004967c0
push str._style
call ebp
push eax
push str._style
lea ecx, [esp + 0x20]
call fcn.004967c0
mov esi, dword [esp + 0x2b0]
push esi
call ebp
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.004967c0
push 0x4fce9c
call ebp
push eax
push 0x4fce9c
lea ecx, [esp + 0x20]
call fcn.004967c0
push 0xc
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, edi
mov byte [esp + 0x2a0], 0xd
je 0x4960bb
push 0x4f0088
mov ecx, eax
call fcn.00482bc0
jmp 0x4960bd
xor eax, eax
cmp eax, edi
mov byte [esp + 0x2a0], 0xc
mov dword [esp + 0x64], eax
jne 0x4960df
push 0x8007000e
call fcn.004d3692
mov eax, dword [esp + 0x64]
cmp eax, edi
je 0x4960e3
mov eax, dword [eax]
jmp 0x4960e5
xor eax, eax
mov ecx, dword [esp + 0x2a8]
cmp ecx, eax
lea ecx, [esp + 0x64]
sete bl
call fcn.00482b70
test bl, bl
je 0x496119
push 0x4fce8c
call ebp
push eax
push 0x4fce8c
lea ecx, [esp + 0x20]
call fcn.004967c0
jmp 0x496550
mov eax, dword [esp + 0x40]
mov esi, dword [0x4eb4c0]
test eax, eax
mov edi, eax
mov dword [esp + 0x10], esi
je 0x496177
mov ecx, eax
shr ecx, 0x10
jne 0x496145
and eax, 0xffff
lea ecx, [esp + 0x10]
push eax
call fcn.00407b70
jmp 0x496173
push eax
call ebp
mov esi, eax
test esi, esi
je 0x496173
push esi
lea ecx, [esp + 0x14]
call fcn.00407580
test eax, eax
je 0x496173
lea ecx, [esi + esi]
mov esi, edi
mov edi, dword [esp + 0x10]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
mov eax, 0x4fce88
mov byte [esp + 0x2a0], 0xe
test eax, eax
je 0x496342
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call esi
mov ebp, eax
xor edi, edi
cmp ebp, edi
je 0x49633e
mov ecx, str.lt_
test ecx, ecx
jne 0x4961b0
mov dword [esp + 0x28], edi
jmp 0x4961bb
push str.lt_
call esi
mov dword [esp + 0x28], eax
mov esi, dword [esp + 0x10]
mov edx, dword [esi - 8]
lea eax, [esi + edx*2]
cmp esi, eax
mov dword [esp + 0x2c], eax
jae 0x496342
mov ebx, dword [sym.imp.MSVCRT.dll_wcsstr]
push 0x4fce88
push esi
call ebx
add esp, 8
test eax, eax
je 0x4961f9
lea esi, [eax + ebp*2]
push 0x4fce88
push esi
inc edi
call ebx
add esp, 8
test eax, eax
jne 0x4961e6
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x2c]
cmp esi, eax
jb 0x4961d7
test edi, edi
jle 0x49633e
lea ecx, [esp + 0x10]
call fcn.00407680
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x10]
sub ebx, ebp
imul ebx, edi
mov eax, dword [esi - 8]
mov dword [esp + 0x30], eax
add ebx, eax
mov eax, dword [esi - 4]
mov dword [esp + 0x20], ebx
cmp eax, ebx
jl 0x496244
cmp dword [esi - 0xc], 1
jle 0x496282
lea eax, [esi - 0xc]
push ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], eax
call fcn.00407580
test eax, eax
je 0x49633e
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x10]
push eax
mov ecx, dword [eax + 4]
shl ecx, 1
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00407650
mov esi, dword [esp + 0x10]
mov eax, dword [esi - 8]
lea eax, [esi + eax*2]
cmp esi, eax
mov dword [esp + 0x2c], eax
jae 0x49633b
push 0x4fce88
push esi
call dword [sym.imp.MSVCRT.dll_wcsstr]
mov edi, eax
add esp, 8
test edi, edi
je 0x496320
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov ecx, edi
sub ecx, eax
mov eax, dword [esp + 0x30]
sar ecx, 1
sub eax, ecx
lea esi, [edx + edx]
sub eax, ebp
lea ecx, [edi + ebp*2]
lea ebx, [eax + eax]
lea eax, [edi + esi]
push ebx
push ecx
push eax
mov dword [esp + 0x5c], eax
call dword [sym.imp.MSVCRT.dll_memmove]
mov ecx, esi
mov esi, str.lt_
mov edx, ecx
mov eax, dword [esp + 0x34]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
sub eax, ebp
and ecx, 3
push 0x4fce88
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x60]
push esi
mov word [esi + ebx], 0
mov ebx, dword [esp + 0x44]
add ebx, eax
mov dword [esp + 0x44], ebx
call dword [sym.imp.MSVCRT.dll_wcsstr]
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4962a9
mov ebx, dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x2c]
cmp esi, eax
jb 0x496294
mov esi, dword [esp + 0x10]
mov dword [esi - 8], ebx
mov esi, dword [esp + 0x10]
mov ecx, 0x4f0534
test ecx, ecx
je 0x496507
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
test ebp, ebp
je 0x496503
mov edx, str.gt_
test edx, edx
jne 0x49636f
mov dword [esp + 0x28], edx
jmp 0x49637e
push str.gt_
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esp + 0x28], eax
mov esi, dword [esp + 0x10]
xor edi, edi
mov eax, dword [esi - 8]
lea eax, [esi + eax*2]
cmp esi, eax
mov dword [esp + 0x30], eax
jae 0x496507
mov ebx, dword [sym.imp.MSVCRT.dll_wcsstr]
push 0x4f0534
push esi
call ebx
add esp, 8
test eax, eax
je 0x4963be
lea esi, [eax + ebp*2]
push 0x4f0534
push esi
inc edi
call ebx
add esp, 8
test eax, eax
jne 0x4963ab
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x30]
cmp esi, eax
jb 0x49639c
test edi, edi
jle 0x496503
lea ecx, [esp + 0x10]
call fcn.00407680
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x10]
sub ebx, ebp
imul ebx, edi
mov eax, dword [esi - 8]
mov dword [esp + 0x2c], eax
add ebx, eax
mov eax, dword [esi - 4]
mov dword [esp + 0x50], ebx
cmp eax, ebx
jl 0x496409
cmp dword [esi - 0xc], 1
jle 0x496447
lea ecx, [esi - 0xc]
push ebx
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x14]
call fcn.00407580
test eax, eax
je 0x496503
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
push eax
mov ecx, dword [eax + 4]
shl ecx, 1
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00407650
mov esi, dword [esp + 0x10]
mov eax, dword [esi - 8]
lea eax, [esi + eax*2]
cmp esi, eax
mov dword [esp + 0x30], eax
jae 0x496500
push 0x4f0534
push esi
call dword [sym.imp.MSVCRT.dll_wcsstr]
mov edi, eax
add esp, 8
test edi, edi
je 0x4964e5
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov ecx, edi
sub ecx, eax
mov eax, dword [esp + 0x2c]
sar ecx, 1
sub eax, ecx
lea esi, [edx + edx]
sub eax, ebp
lea ecx, [edi + ebp*2]
lea ebx, [eax + eax]
lea eax, [edi + esi]
push ebx
push ecx
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.MSVCRT.dll_memmove]
mov ecx, esi
mov esi, str.gt_
mov edx, ecx
mov eax, dword [esp + 0x34]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
sub eax, ebp
and ecx, 3
push 0x4f0534
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x30]
push esi
mov word [esi + ebx], 0
mov ebx, dword [esp + 0x40]
add ebx, eax
mov dword [esp + 0x40], ebx
call dword [sym.imp.MSVCRT.dll_wcsstr]
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x49646e
mov ebx, dword [esp + 0x50]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x30]
cmp esi, eax
jb 0x496459
mov esi, dword [esp + 0x10]
mov dword [esi - 8], ebx
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.004967c0
mov eax, dword [esp + 0x10]
mov edx, dword [0x4eb24c]
mov byte [esp + 0x2a0], 0xc
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x496550
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x496550
mov edx, dword [esp + 0x10]
lea eax, [edx - 0xc]
push eax
call fcn.004d3765
add esp, 4
push str.__span_
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push str.__span_
lea ecx, [esp + 0x20]
call fcn.004967c0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x496580
push 0x80004003
call fcn.004d3692
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x54]
mov ebx, dword [esp + 0x2b4]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
xor edi, edi
jmp 0x49663f
mov eax, dword [esp + 0x1c]
cmp eax, edi
jne 0x4965b5
push 0x80004003
call fcn.004d3692
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
call dword [ecx + 0xf8]
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
push eax
lea ecx, [esp + 0x98]
push esi
push ecx
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0x10
test eax, eax
jne 0x49663f
mov eax, dword [esp + 0x1c]
cmp eax, edi
jne 0x496602
push 0x80004003
call fcn.004d3692
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
lea ecx, [esp + 0x60]
push ecx
push eax
call dword [edx + 0xe8]
mov eax, dword [esp + 0x1c]
cmp eax, edi
jne 0x496626
push 0x80004003
call fcn.004d3692
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x60]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0xf4]
mov edx, dword [esp + 0x60]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0xc
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, edi
mov byte [esp + 0x2a0], 0xf
je 0x496667
push str.Character
mov ecx, eax
call fcn.00482bc0
jmp 0x496669
xor eax, eax
cmp eax, edi
mov byte [esp + 0x2a0], 0xc
mov dword [esp + 0x5c], eax
jne 0x496687
push 0x8007000e
call fcn.004d3692
mov eax, dword [esp + 0x5c]
cmp eax, edi
mov byte [esp + 0x2a0], 0x10
je 0x496697
mov esi, dword [eax]
jmp 0x496699
xor esi, esi
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x4966af
push 0x80004003
call fcn.004d3692
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x4c]
push edx
push 1
push esi
push eax
call dword [ecx + 0x48]
lea ecx, [esp + 0x5c]
call fcn.00482b70
push str.Textedit
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x14]
mov byte [esp + 0x2a0], 0x11
cmp eax, edi
jne 0x4966f5
push 0x80004003
call fcn.004d3692
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x4c]
push edx
push 1
push esi
push eax
call dword [ecx + 0x4c]
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
lea ecx, [esp + 0x1c]
call fcn.004729d0
mov eax, dword [esp + 0x18]
push eax
call esi
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2a0], 6
push ecx
call esi
jmp 0x495f74
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x14]
call fcn.004729d0
lea ecx, [esp + 0x38]
call fcn.004729d0
lea ecx, [esp + 0x24]
call fcn.004729d0
lea ecx, [esp + 0x3c]
call fcn.004729d0
lea ecx, [esp + 0x34]
mov byte [esp + 0x2a0], 0
call fcn.004729d0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x54]
inc eax
cmp eax, ecx
mov dword [esp + 0x44], eax
jl 0x495d12
pop ebp
pop ebx
lea ecx, [esp + 0x6c]
mov dword [esp + 0x298], 0xffffffff
call fcn.0043cee0
mov ecx, dword [esp + 0x290]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x294
ret 0x10