Function at 0x4df910
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6558f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x504
push ebx
push esi
push edi
lea eax, [ebp - 0x2c]
push eax
mov esi, ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
xor edi, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
mov ecx, dword [0x716738]
push 0x1a1
push ecx
call dword [sym.imp.USER32.dll_LoadMenuW]
push edi
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
call fcn.00446920
mov edi, eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x28]
mov ebx, dword [esi + 4]
push eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00444c60
mov ecx, dword [ebp - 0x1c]
mov edx, dword [edi]
add esp, 8
push 0
push ebx
push ecx
push eax
push 0x142
push edx
call dword [sym.imp.USER32.dll_TrackPopupMenuEx]
mov byte [ebp - 4], 0
xor ebx, ebx
cmp eax, ebx
je 0x4dfc44
mov eax, dword [esi + 4]
push 1
push eax
push str.Text_files_.txt_.txt
push 0x10
push ebx
push 0x675f04
push ebx
lea ecx, [ebp - 0x510]
call fcn.0044b9c0
mov byte [ebp - 4], 2
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x510]
call fcn.004471c0
cmp eax, 1
je 0x4dfa4c
mov byte [ebp - 4], bl
mov dword [ebp - method.CSSFileDialog.virtual_0], vtable.CSSFileDialog.0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x88]
cmp eax, ebx
je 0x4dfa05
push eax
call fcn.00611a0b
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x508]
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x4fc]
cmp eax, ebx
je 0x4dfa26
push eax
call fcn.0060ec68
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x4dfa42
push eax
call dword [sym.imp.USER32.dll_DestroyMenu]
test eax, eax
je 0x4dfa42
mov dword [ebp - 0x10], ebx
mov eax, 1
jmp 0x4dfc62
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x510]
call fcn.0044d7a0
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
push eax
call fcn.004011f0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0xa
mov eax, dword [eax - 0xc]
add eax, 0xfffffffc
push eax
push ebx
lea ecx, [ebp - 0x20]
call fcn.00448080
lea eax, [ebp - 0x20]
push 0x672b64
push eax
call fcn.00439380
add esp, 8
test al, al
je 0x4dfab1
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx - 0xc]
push 0x672b64
push eax
lea ecx, [ebp - 0x14]
call fcn.004490e0
mov edx, dword [ebp - 0x14]
push 0x672b60
push edx
call fcn.00614a04
add esp, 8
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x4dfbb6
mov eax, dword [esi + 0x2c]
push 0
push 0
lea edi, [esi + 0x2c]
push 0x1004
push eax
mov dword [ebp - 0x18], edi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x4dfbaa
mov edx, dword [0x700724]
mov eax, dword [edx + 0xc]
mov ecx, 0x700724
call eax
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x24]
push ecx
push 0
push ebx
mov ecx, edi
call fcn.004a2c80
push 2
push 0x671784
lea ecx, [ebp - 0x24]
call fcn.00401710
mov esi, dword [ebp - 0x24]
test esi, esi
jne 0x4dfb30
xor eax, eax
jmp 0x4dfb5c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x4dfb43
xor eax, eax
jmp 0x4dfb5c
lea edi, [eax + eax]
mov eax, edi
call fcn.006123b0
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.00403a80
mov edi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [esi - 0xc]
push edx
push ecx
push 1
push eax
call fcn.006161f6
add esp, 0x10
mov byte [ebp - 4], 0xa
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4dfb8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi]
push 0
push 0
push 0x1004
push ecx
inc ebx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp ebx, eax
jl 0x4dfaee
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0061466b
add esp, 4
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4dfbd9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4dfbfc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov dword [ebp - method.CSSFileDialog.virtual_0], vtable.CSSFileDialog.0
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x88]
xor ebx, ebx
cmp eax, ebx
je 0x4dfc23
push eax
call fcn.00611a0b
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x508]
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x4fc]
cmp eax, ebx
je 0x4dfc44
push eax
call fcn.0060ec68
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x4dfc60
push eax
call dword [sym.imp.USER32.dll_DestroyMenu]
test eax, eax
je 0x4dfc60
mov dword [ebp - 0x10], ebx
xor eax, eax
lea esp, [ebp - 0x51c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc