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

Disassembly:
push 0xffffffffffffffff
push 0x4db37f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x288
mov ax, word [0x500df0]
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 0x497048
lea edx, [esp + 0x88]
push eax
push edx
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
lea ecx, [esp + 0x6c]
call fcn.0043e000
mov ecx, esi
mov dword [esp + 0x298], edi
call fcn.004a0d10
push eax
lea ecx, [esp + 0x70]
call fcn.0043e540
mov ecx, dword [esp + 0x78]
cmp ecx, edi
jne 0x497075
xor eax, eax
jmp 0x49707e
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 0x497b03
push ebx
push ebp
jmp 0x497099
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 0x4970c4
mov ecx, dword [esp + 0x2b4]
push ecx
mov ecx, dword [esp + 0x70]
push esi
call fcn.00496dc0
jmp 0x497aec
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.0040ecc0
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 0x497167
lea ecx, [esp + 0x38]
call fcn.0040ecc0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x38], edi
cmp eax, edi
jne 0x497121
push 0x80004003
call fcn.004d4bee
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.004992d0
cmp eax, edi
jge 0x49714b
cmp eax, 0x80004002
je 0x49714b
push eax
call fcn.004d4bee
mov eax, dword [esp + 0x24]
cmp eax, edi
jne 0x497161
push 0x80004003
call fcn.004d4bee
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
lea ecx, [esp + 0x34]
call fcn.0040ecc0
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.00499250
cmp eax, edi
jge 0x49719e
cmp eax, 0x80004002
je 0x49719e
push eax
call fcn.004d4bee
cmp dword [esp + 0x3c], edi
je 0x497ab7
lea ecx, [esp + 0x14]
call fcn.0040ecc0
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], edi
cmp eax, edi
jne 0x4971cb
push 0x80004003
call fcn.004d4bee
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 0x497ab7
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 0x49723c
push str.Character
mov ecx, eax
call fcn.00484710
jmp 0x49723e
xor eax, eax
cmp eax, edi
mov byte [esp + 0x2a0], 6
mov dword [esp + 0x58], eax
jne 0x49725c
push 0x8007000e
call fcn.004d4bee
mov eax, dword [esp + 0x58]
cmp eax, edi
mov byte [esp + 0x2a0], 8
je 0x49726c
mov esi, dword [eax]
jmp 0x49726e
xor esi, esi
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x497284
push 0x80004003
call fcn.004d4bee
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.004846c0
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 0x4972ca
push 0x80004003
call fcn.004d4bee
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 0x49730a
push 0x80004003
call fcn.004d4bee
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 0x497ab0
cmp word [esp + 0x4a], 0xffff
jne 0x497ab0
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.0040ecc0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], edi
cmp eax, edi
jne 0x49736e
push 0x80004003
call fcn.004d4bee
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 0x4979bf
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x497399
push 0x80004003
call fcn.004d4bee
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 0x49791f
push str._span_id
call ebp
push eax
push str._span_id
lea ecx, [esp + 0x20]
call fcn.00497b40
push ebx
call ebp
push eax
push ebx
lea ecx, [esp + 0x20]
call fcn.00497b40
push str._style
call ebp
push eax
push str._style
lea ecx, [esp + 0x20]
call fcn.00497b40
mov esi, dword [esp + 0x2b0]
push esi
call ebp
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.00497b40
push 0x4fda04
call ebp
push eax
push 0x4fda04
lea ecx, [esp + 0x20]
call fcn.00497b40
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 0x49743b
push 0x4f0c70
mov ecx, eax
call fcn.00484710
jmp 0x49743d
xor eax, eax
cmp eax, edi
mov byte [esp + 0x2a0], 0xc
mov dword [esp + 0x64], eax
jne 0x49745f
push 0x8007000e
call fcn.004d4bee
mov eax, dword [esp + 0x64]
cmp eax, edi
je 0x497463
mov eax, dword [eax]
jmp 0x497465
xor eax, eax
mov ecx, dword [esp + 0x2a8]
cmp ecx, eax
lea ecx, [esp + 0x64]
sete bl
call fcn.004846c0
test bl, bl
je 0x497499
push 0x4fd9f4
call ebp
push eax
push 0x4fd9f4
lea ecx, [esp + 0x20]
call fcn.00497b40
jmp 0x4978d0
mov eax, dword [esp + 0x40]
mov esi, dword [0x4ed0fc]
test eax, eax
mov edi, eax
mov dword [esp + 0x10], esi
je 0x4974f7
mov ecx, eax
shr ecx, 0x10
jne 0x4974c5
and eax, 0xffff
lea ecx, [esp + 0x10]
push eax
call fcn.00406b70
jmp 0x4974f3
push eax
call ebp
mov esi, eax
test esi, esi
je 0x4974f3
push esi
lea ecx, [esp + 0x14]
call fcn.00406580
test eax, eax
je 0x4974f3
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, 0x4fd9f0
mov byte [esp + 0x2a0], 0xe
test eax, eax
je 0x4976c2
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call esi
mov ebp, eax
xor edi, edi
cmp ebp, edi
je 0x4976be
mov ecx, str.lt_
test ecx, ecx
jne 0x497530
mov dword [esp + 0x28], edi
jmp 0x49753b
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 0x4976c2
mov ebx, dword [sym.imp.MSVCRT.dll_wcsstr]
push 0x4fd9f0
push esi
call ebx
add esp, 8
test eax, eax
je 0x497579
lea esi, [eax + ebp*2]
push 0x4fd9f0
push esi
inc edi
call ebx
add esp, 8
test eax, eax
jne 0x497566
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x2c]
cmp esi, eax
jb 0x497557
test edi, edi
jle 0x4976be
lea ecx, [esp + 0x10]
call fcn.00406680
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 0x4975c4
cmp dword [esi - 0xc], 1
jle 0x497602
lea eax, [esi - 0xc]
push ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], eax
call fcn.00406580
test eax, eax
je 0x4976be
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.00406650
mov esi, dword [esp + 0x10]
mov eax, dword [esi - 8]
lea eax, [esi + eax*2]
cmp esi, eax
mov dword [esp + 0x2c], eax
jae 0x4976bb
push 0x4fd9f0
push esi
call dword [sym.imp.MSVCRT.dll_wcsstr]
mov edi, eax
add esp, 8
test edi, edi
je 0x4976a0
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 0x4fd9f0
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 0x497629
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 0x497614
mov esi, dword [esp + 0x10]
mov dword [esi - 8], ebx
mov esi, dword [esp + 0x10]
mov ecx, 0x4f160c
test ecx, ecx
je 0x497887
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
test ebp, ebp
je 0x497883
mov edx, str.gt_
test edx, edx
jne 0x4976ef
mov dword [esp + 0x28], edx
jmp 0x4976fe
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 0x497887
mov ebx, dword [sym.imp.MSVCRT.dll_wcsstr]
push 0x4f160c
push esi
call ebx
add esp, 8
test eax, eax
je 0x49773e
lea esi, [eax + ebp*2]
push 0x4f160c
push esi
inc edi
call ebx
add esp, 8
test eax, eax
jne 0x49772b
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x30]
cmp esi, eax
jb 0x49771c
test edi, edi
jle 0x497883
lea ecx, [esp + 0x10]
call fcn.00406680
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 0x497789
cmp dword [esi - 0xc], 1
jle 0x4977c7
lea ecx, [esi - 0xc]
push ebx
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x14]
call fcn.00406580
test eax, eax
je 0x497883
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.00406650
mov esi, dword [esp + 0x10]
mov eax, dword [esi - 8]
lea eax, [esi + eax*2]
cmp esi, eax
mov dword [esp + 0x30], eax
jae 0x497880
push 0x4f160c
push esi
call dword [sym.imp.MSVCRT.dll_wcsstr]
mov edi, eax
add esp, 8
test edi, edi
je 0x497865
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 0x4f160c
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 0x4977ee
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 0x4977d9
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.00497b40
mov eax, dword [esp + 0x10]
mov edx, dword [0x4ed100]
mov byte [esp + 0x2a0], 0xc
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4978d0
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4978d0
mov edx, dword [esp + 0x10]
lea eax, [edx - 0xc]
push eax
call fcn.004d4cc1
add esp, 4
push str.__span_
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push str.__span_
lea ecx, [esp + 0x20]
call fcn.00497b40
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x497900
push 0x80004003
call fcn.004d4bee
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 0x4979bf
mov eax, dword [esp + 0x1c]
cmp eax, edi
jne 0x497935
push 0x80004003
call fcn.004d4bee
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 0x4979bf
mov eax, dword [esp + 0x1c]
cmp eax, edi
jne 0x497982
push 0x80004003
call fcn.004d4bee
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 0x4979a6
push 0x80004003
call fcn.004d4bee
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 0x4979e7
push str.Character
mov ecx, eax
call fcn.00484710
jmp 0x4979e9
xor eax, eax
cmp eax, edi
mov byte [esp + 0x2a0], 0xc
mov dword [esp + 0x5c], eax
jne 0x497a07
push 0x8007000e
call fcn.004d4bee
mov eax, dword [esp + 0x5c]
cmp eax, edi
mov byte [esp + 0x2a0], 0x10
je 0x497a17
mov esi, dword [eax]
jmp 0x497a19
xor esi, esi
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x497a2f
push 0x80004003
call fcn.004d4bee
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.004846c0
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 0x497a75
push 0x80004003
call fcn.004d4bee
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.0040ecc0
mov eax, dword [esp + 0x18]
push eax
call esi
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2a0], 6
push ecx
call esi
jmp 0x4972f4
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x14]
call fcn.0040ecc0
lea ecx, [esp + 0x38]
call fcn.0040ecc0
lea ecx, [esp + 0x24]
call fcn.0040ecc0
lea ecx, [esp + 0x3c]
call fcn.0040ecc0
lea ecx, [esp + 0x34]
mov byte [esp + 0x2a0], 0
call fcn.0040ecc0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x54]
inc eax
cmp eax, ecx
mov dword [esp + 0x44], eax
jl 0x497092
pop ebp
pop ebx
lea ecx, [esp + 0x6c]
mov dword [esp + 0x298], 0xffffffff
call fcn.0043e050
mov ecx, dword [esp + 0x290]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x294
ret 0x10