Function at 0x490f70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64db89
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x528
push ebx
push esi
push edi
push 1
mov ebx, ecx
mov eax, dword [ebx + 4]
push eax
push str.Data_files_.txt_.txt
push 2
xor edi, edi
push edi
push 0x672b70
push edi
lea ecx, [ebp - 0x534]
mov dword [ebp - 0x38], ebx
call fcn.0044b9c0
mov dword [ebp - 4], edi
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x534]
call fcn.004471c0
test eax, eax
jne 0x491031
or esi, 0xffffffff
mov dword [ebp - 4], esi
mov dword [ebp - method.CSSFileDialog.virtual_0], vtable.CSSFileDialog.0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0xac]
cmp eax, edi
je 0x490ffa
push eax
call fcn.00611a0b
add esp, 4
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x52c]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x520]
cmp eax, edi
je 0x491019
push eax
call fcn.0060ec68
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x534]
call fcn.0044d7a0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
push eax
call fcn.004011f0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 8
mov eax, dword [eax - 0xc]
add eax, 0xfffffffc
push eax
push edi
lea ecx, [ebp - 0x24]
call fcn.00448080
lea eax, [ebp - 0x24]
push 0x672b64
push eax
call fcn.00439380
add esp, 8
test al, al
je 0x491096
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx - 0xc]
push 0x672b64
push eax
lea ecx, [ebp - 0x1c]
call fcn.004490e0
mov edx, dword [ebp - 0x1c]
push 0x672b60
push edx
call fcn.00614a04
add esp, 8
mov dword [ebp - 0x48], eax
cmp eax, edi
je 0x491580
cmp dword [ebx + 0x3378], 0
mov dword [ebp - 0x40], edi
jle 0x491577
lea eax, [ebp - 0x30]
mov dword [ebp - 0x4c], eax
jmp 0x4910d0
mov edx, dword [0x700724]
mov eax, dword [edx + 0xc]
mov ecx, 0x700724
call eax
add eax, 0x10
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 0xa
mov edx, dword [0x700724]
mov eax, dword [edx + 0xc]
mov ecx, 0x700724
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0xd
xor ecx, ecx
cmp dword [ebx + 0x3398], ecx
push 0
sete cl
push edi
lea edx, [ebp - 0x50]
mov byte [ebp - 0x28], cl
push edx
lea ecx, [ebx + 0x2fd0]
call fcn.0047f4f0
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x34]
call fcn.004078d0
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x491154
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 1
push edi
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebx + 0x2fd0]
call fcn.0047f4f0
mov byte [ebp - 4], 0x10
mov ecx, dword [ebx + 0x5c]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x491622
mov eax, dword [ebp - 0x20]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4911a6
test dx, dx
je 0x4911a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4911a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x491180
xor eax, eax
jmp 0x4911ab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x4911bd
mov dword [ebp - 0x2c], 3
jmp 0x4911da
lea edx, [ebx + 0x58]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.00426560
movzx ecx, al
add esp, 8
neg ecx
sbb ecx, ecx
add ecx, 2
mov dword [ebp - 0x2c], ecx
push 2
push edi
lea edx, [ebp - 0x3c]
push edx
lea ecx, [ebx + 0x2fd0]
call fcn.0047f4f0
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x30]
call fcn.004078d0
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49121c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x700724]
mov eax, dword [edx + 0xc]
mov ecx, 0x700724
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx - 0xc]
lea edx, [eax + eax]
test edx, edx
jne 0x491297
mov byte [ebp - 4], 0x10
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x491263
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xd
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 0x491286
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x34]
call fcn.004052c0
jmp 0x491564
push eax
push ecx
lea ecx, [ebp - 0x10]
call fcn.00401710
push 0x671160
lea ecx, [ebp - 0x18]
call fcn.0040bea0
mov byte [ebp - 4], 0x17
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00401710
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax - 0xc]
add ecx, ecx
jne 0x4912de
push 1
push 0x672aa0
lea ecx, [ebp - 0x30]
call fcn.00401670
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00401710
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00401710
mov edx, dword [0x700724]
mov eax, dword [edx + 0xc]
mov ecx, 0x700724
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0x19
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
mov edi, 0x32
sub eax, edi
or eax, ecx
jge 0x491337
push edi
lea ecx, [ebp - 0x14]
call fcn.00401400
mov esi, dword [ebp - 0x14]
cmp dword [esi - 8], edi
jl 0x49162c
mov dword [esi - 0xc], edi
xor ecx, ecx
mov edi, 1
mov word [esi + 0x64], cx
cmp dword [esi - 4], edi
jle 0x491362
mov edx, dword [esi - 0xc]
push edx
lea ecx, [ebp - 0x14]
call fcn.00401370
mov esi, dword [ebp - 0x14]
movzx eax, byte [ebp - 0x28]
push 0xa
push esi
push eax
call fcn.0061259a
add esp, 0xc
test esi, esi
jne 0x49137a
xor eax, eax
jmp 0x491395
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x491380
sub eax, edx
sar eax, 1
js 0x49162c
cmp eax, dword [esi - 8]
jg 0x49162c
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00401710
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00401710
push 0
push 0x66eba8
lea ecx, [ebp - 0x14]
call fcn.00401670
mov esi, dword [ebp - 0x14]
cmp dword [esi - 4], edi
jle 0x4913ea
mov edx, dword [esi - 0xc]
push edx
lea ecx, [ebp - 0x14]
call fcn.00401370
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x2c]
push 0xa
push esi
push eax
call fcn.0061259a
add esp, 0xc
test esi, esi
jne 0x491401
xor eax, eax
jmp 0x49141b
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x491406
sub eax, edx
sar eax, 1
js 0x49162c
cmp eax, dword [esi - 8]
jg 0x49162c
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00401710
push 2
push 0x671784
lea ecx, [ebp - 0x18]
call fcn.00401670
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00401710
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx - 0xc]
lea edi, [eax + eax]
test edi, edi
je 0x4914cc
push 0
push 0
push 0
push 0
push edi
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
test ebx, ebx
je 0x4914c9
lea edx, [ebx + 1]
push edx
call fcn.005fb5ce
add esp, 4
push 0
push 0
push ebx
push eax
push edi
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x4914bd
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
push ecx
shr eax, 1
push eax
push 1
push edx
call fcn.006161f6
add esp, 0x10
mov eax, dword [ebp - 0x44]
push eax
call fcn.0060faf6
add esp, 4
mov ebx, dword [ebp - 0x38]
mov byte [ebp - 4], 0x17
add esi, 0xfffffff0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4914ec
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49150f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x491532
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xd
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 0x491555
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x34]
call fcn.004052c0
mov edi, dword [ebp - 0x40]
inc edi
mov dword [ebp - 0x40], edi
cmp edi, dword [ebx + 0x3378]
jl 0x4910d0
mov eax, dword [ebp - 0x48]
push eax
call fcn.0061466b
add esp, 4
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
or esi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4915a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4915c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], esi
mov dword [ebp - method.CSSFileDialog.virtual_0], vtable.CSSFileDialog.0
mov dword [ebp - 4], 0x20
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x4915ee
push eax
call fcn.00611a0b
add esp, 4
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x52c]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x520]
test eax, eax
je 0x49160d
push eax
call fcn.0060ec68
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.004011d0
push 0x80070057
call fcn.004011d0
int3