Function at 0x404cfa
Capabilities:
Write file on windows

Disassembly:
jmp 0x409da0
push 0xffffffffffffffff
push 0x54900b
mov eax, dword fs:[0]
push eax
sub esp, 0x858
mov eax, dword [0x5c1d10]
xor eax, esp
mov dword [esp + 0x854], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c1d10]
xor eax, esp
push eax
lea eax, [esp + 0x86c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x87c]
mov ebp, ecx
lea ecx, [esp + 0x14]
call fcn.00404bc4
xor ebx, ebx
mov dword [esp + 0x874], ebx
test dword [esi], 0x10000000
mov byte [esp + 0x18], 0x22
mov byte [esp + 0x19], bl
mov byte [esp + 0x68], bl
mov byte [esp + 0x468], bl
mov byte [esp + 0x268], bl
mov byte [esp + 0x368], bl
mov byte [esp + 0x54], bl
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
jne 0x409e74
push 0x23
push str.___Dialog_item_not_visible__r_n
lea ecx, [esp + 0x1c]
call fcn.0040468d
mov eax, dword [esp + 0x14]
cmp dword [eax - 4], 1
mov edi, dword [eax - 0xc]
jle 0x409e59
mov eax, edi
push eax
lea ecx, [esp + 0x18]
call fcn.00402540
mov eax, dword [esp + 0x14]
mov edx, dword [ebp + 0xc]
push 0
lea ecx, [esp + 0x2c]
push ecx
push edi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40a5e6
movzx ecx, word [esi + 0x12]
test cx, cx
lea eax, [esi + 0x12]
je 0x409e92
cmp cx, 0xffff
jne 0x409eb4
movzx ecx, word [eax + 2]
add eax, 2
mov dword [esp + 0x20], ecx
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x409ef6
cmp cx, 0xffff
jne 0x409ed2
movzx ebx, word [eax + 2]
lea edi, [eax + 2]
mov dword [esp + 0x1c], ebx
add edi, 2
jmp 0x409ef9
push 0x100
lea edx, [esp + 0x26c]
push edx
push eax
mov ecx, ebp
call fcn.00404b6f
test eax, eax
jne 0x409e95
jmp 0x40a5f4
push 0x100
lea ecx, [esp + 0x36c]
push ecx
push eax
mov ecx, ebp
call fcn.00404b6f
mov edi, eax
test edi, edi
mov dword [esp + 0x24], edi
jne 0x409efd
jmp 0x40a5f4
lea edi, [eax + 2]
mov dword [esp + 0x24], edi
cmp word [esp + 0x20], 0
push 8
lea ecx, [esp + 0x18]
jne 0x40a105
push str.CONTROL
call fcn.0040468d
test bx, bx
je 0x409f3b
movzx edx, bx
push edx
lea eax, [esp + 0x30]
push str.IDR_R_hu
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x2c]
jmp 0x409f5e
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
call fcn.00401e1f
lea eax, [esp + 0x368]
push eax
lea ecx, [esp + 0x18]
call fcn.00401e1f
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call fcn.00401e1f
push 0x562ce4
lea ecx, [esp + 0x18]
call fcn.00401e1f
movzx edx, word [esi + 0x10]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push edx
lea eax, [esp + 0x30]
push str.IDC_C_hu
push eax
call ebx
lea eax, [esp + 0x38]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x409f97
sub eax, edx
push eax
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00404c0a
push 1
push 0x562ce4
lea ecx, [esp + 0x1c]
call fcn.00404c0a
mov eax, dword [ebp + 0x18]
lea ecx, [ebp + 0x10]
lea edx, [esp + 0x2c]
push edx
push eax
call fcn.004b1d51
lea eax, [esp + 0x18]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x409fe0
sub eax, edx
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404c0a
lea eax, [esp + 0x268]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40a004
sub eax, edx
push eax
lea ecx, [esp + 0x26c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00404c0a
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40a028
sub eax, edx
push eax
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
call fcn.00404c0a
push 1
push 0x562ce4
lea ecx, [esp + 0x1c]
call fcn.00404c0a
mov ecx, dword [esi]
push 0x400
lea eax, [esp + 0x46c]
push eax
push 0x17
push section..data
push ecx
mov ecx, ebp
call fcn.0040214e
lea eax, [esp + 0x468]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40a080
sub eax, edx
je 0x40a0ac
lea edx, [esp + 0x468]
push edx
lea ecx, [esp + 0x18]
call fcn.00401e1f
push 0x562ce4
lea ecx, [esp + 0x18]
call fcn.00401e1f
movsx eax, word [esi + 0xe]
movsx ecx, word [esi + 0xc]
movsx edx, word [esi + 0xa]
push eax
movsx eax, word [esi + 8]
push ecx
push edx
push eax
lea ecx, [esp + 0x3c]
push str._hd__hd__hd__hd
push ecx
call ebx
lea eax, [esp + 0x44]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40a0d6
sub eax, edx
push eax
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x1c]
call fcn.00404c0a
push 2
push 0x562cc0
lea ecx, [esp + 0x1c]
call fcn.00404c0a
jmp 0x40a563
push 0x562cb4
call fcn.0040468d
movzx eax, word [esp + 0x20]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
add eax, 0xffffff80
cmp eax, 5
ja case.default.0x40a126
jmp dword [eax*4 + 0x40a650]
mov ecx, dword [esi]
push 0x200
lea eax, [esp + 0x6c]
push eax
push 0x1a
push 0x5b9288
push ecx
mov ecx, ebp
call fcn.0040214e
mov edi, dword [esi]
mov byte [esp + 0x54], 0
xor ecx, ecx
mov edx, dword [ecx*8 + 0x5b95f0]
mov eax, edx
and eax, edi
cmp eax, edx
je 0x40a16a
add ecx, 1
cmp ecx, 7
jb 0x40a151
jmp 0x40a181
mov edx, dword [ecx*8 + 0x5b95f4]
push edx
lea eax, [esp + 0x58]
push 0x562bd8
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x18]
call fcn.00402676
push 0x562cb0
lea ecx, [esp + 0x18]
call fcn.00401e1f
jmp case.default.0x40a126
push str.EDITTEXT
lea ecx, [esp + 0x18]
call fcn.00402676
mov eax, dword [esi]
push 0x200
lea edx, [esp + 0x6c]
push edx
push 0xe
push 0x5b93c0
push eax
jmp 0x40a29c
mov edx, dword [esi]
push 0x200
lea ecx, [esp + 0x6c]
push ecx
push 0x1e
push 0x5b9500
push edx
mov ecx, ebp
call fcn.0040214e
mov edi, dword [esi]
mov byte [esp + 0x54], 0
xor ecx, ecx
lea ecx, [ecx]
mov edx, dword [ecx*8 + 0x5b9628]
mov eax, edx
and eax, edi
cmp eax, edx
je 0x40a211
add ecx, 1
cmp ecx, 4
jb 0x40a1f0
lea edx, [esp + 0x54]
push edx
jmp 0x40a186
mov eax, dword [ecx*8 + 0x5b962c]
push eax
lea ecx, [esp + 0x58]
push 0x562bd8
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x54]
push edx
jmp 0x40a186
push 0x562c98
lea ecx, [esp + 0x18]
call fcn.00402676
mov ecx, dword [esi]
push 0x200
lea eax, [esp + 0x6c]
push eax
push 0x10
push 0x5b9430
push ecx
jmp 0x40a29c
push 0x562c88
lea ecx, [esp + 0x18]
call fcn.00402676
mov eax, dword [esi]
push 0x200
lea edx, [esp + 0x6c]
push edx
push 0xa
push 0x5b94b0
push eax
jmp 0x40a29c
push 0x562c7c
lea ecx, [esp + 0x18]
call fcn.00402676
mov edx, dword [esi]
push 0x200
lea ecx, [esp + 0x6c]
push ecx
push 0xd
push 0x5b9358
push edx
mov ecx, ebp
call fcn.0040214e
mov eax, dword [esp + 0x1c]
test ax, ax
je 0x40a2f2
movzx eax, ax
push eax
lea ecx, [esp + 0x30]
push str.IDR_R_hu
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x18]
call fcn.00401e1f
push 0x562ce4
lea ecx, [esp + 0x18]
call fcn.00401e1f
mov eax, dword [ebp + 0x18]
lea ecx, [ebp + 0x10]
lea edx, [esp + 0x2c]
push edx
push eax
call fcn.004b1d51
mov edi, dword [esp + 0x20]
jmp 0x40a34d
mov edi, dword [esp + 0x20]
cmp di, 0x85
je 0x40a34d
cmp di, 0x84
je 0x40a34d
cmp di, 0x83
je 0x40a34d
cmp di, 0x81
je 0x40a34d
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
call fcn.00401e1f
lea ecx, [esp + 0x368]
push ecx
lea ecx, [esp + 0x18]
call fcn.00401e1f
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
call fcn.00401e1f
push 0x562ce4
lea ecx, [esp + 0x18]
call fcn.00401e1f
movzx eax, word [esi + 0x10]
push eax
lea ecx, [esp + 0x30]
push str.IDC_C_hu
push ecx
call ebx
lea eax, [esp + 0x38]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40a368
sub eax, edx
push eax
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x1c]
call fcn.00404c0a
push 1
push 0x562ce4
lea ecx, [esp + 0x1c]
call fcn.00404c0a
mov eax, dword [ebp + 0x18]
lea ecx, [ebp + 0x10]
lea edx, [esp + 0x2c]
push edx
push eax
call fcn.004b1d51
mov eax, dword [esp + 0x14]
push 7
push 0x562040
push eax
call fcn.004f4baa
add esp, 0xc
test eax, eax
jne 0x40a495
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call fcn.00401e1f
push edi
mov ecx, ebp
call fcn.004035da
push eax
lea ecx, [esp + 0x18]
call fcn.00401e1f
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
call fcn.00401e1f
push 0x562ce4
lea ecx, [esp + 0x18]
call fcn.00401e1f
lea eax, [esp + 0x68]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40a402
sub eax, edx
je 0x40a42b
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x18]
call fcn.00401e1f
push 0x562c78
lea ecx, [esp + 0x18]
call fcn.00401e1f
mov edx, dword [esi]
push 0x400
lea ecx, [esp + 0x46c]
push ecx
push 0x17
push section..data
push edx
mov ecx, ebp
call fcn.0040214e
lea eax, [esp + 0x468]
push eax
lea ecx, [esp + 0x18]
call fcn.00401e1f
push 0x562ce4
lea ecx, [esp + 0x18]
call fcn.00401e1f
movsx ecx, word [esi + 0xe]
movsx edx, word [esi + 0xc]
movsx eax, word [esi + 0xa]
push ecx
movsx ecx, word [esi + 8]
push edx
push eax
push ecx
lea edx, [esp + 0x3c]
push str._hd__hd__hd__hd
push edx
call ebx
add esp, 0x18
lea eax, [esp + 0x2c]
push eax
jmp 0x40a546
movsx ecx, word [esi + 0xe]
movsx edx, word [esi + 0xc]
movsx eax, word [esi + 0xa]
push ecx
movsx ecx, word [esi + 8]
push edx
push eax
push ecx
lea edx, [esp + 0x3c]
push str._hd__hd__hd__hd
push edx
call ebx
add esp, 0x18
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
call fcn.00401e1f
mov ecx, dword [esp + 0x14]
push 0x562ce4
push ecx
call fcn.004f4ac1
lea eax, [esp + 0x70]
add esp, 8
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40a4e0
sub eax, edx
je 0x40a509
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0x18]
call fcn.00401e1f
push 0x562c78
lea ecx, [esp + 0x18]
call fcn.00401e1f
mov ecx, dword [esi]
push 0x400
lea eax, [esp + 0x46c]
push eax
push 0x17
push section..data
push ecx
mov ecx, ebp
call fcn.0040214e
lea eax, [esp + 0x468]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40a531
sub eax, edx
je 0x40a54f
lea edx, [esp + 0x468]
push edx
lea ecx, [esp + 0x18]
call fcn.00401e1f
push 2
push 0x562cc0
lea ecx, [esp + 0x1c]
call fcn.00404c0a
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
cmp dword [eax - 4], 1
mov esi, dword [eax - 0xc]
jle 0x40a580
mov eax, esi
push eax
lea ecx, [esp + 0x18]
call fcn.00402540
mov eax, dword [esp + 0x14]
mov edx, dword [ebp + 0xc]
push 0
lea ecx, [esp + 0x2c]
push ecx
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40a5e6
movzx eax, word [edi]
test ax, ax
je 0x40a60c
movzx esi, ax
push str.___Dialog_Contains_Creation_Data__r_n
lea ecx, [esp + 0x18]
add esi, edi
call fcn.00402676
mov eax, dword [esp + 0x14]
cmp dword [eax - 4], 1
mov edi, dword [eax - 0xc]
jle 0x40a5cf
mov eax, edi
push eax
lea ecx, [esp + 0x18]
call fcn.00402540
mov eax, dword [esp + 0x14]
mov edx, dword [ebp + 0xc]
push 0
lea ecx, [esp + 0x2c]
push ecx
push edi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40a60f
push 0
push 0
push str.Error_Writing_DLG
call fcn.004b468e
mov dword [esp + 0x874], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402798
xor eax, eax
jmp 0x40a625
lea esi, [edi + 2]
mov dword [esp + 0x874], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402798
mov eax, esi
mov ecx, dword [esp + 0x86c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x854]
xor ecx, esp
call fcn.004f409d
add esp, 0x864
ret 4