Function at 0x40a8a0
Capabilities:
Write file on windows

Disassembly:
jmp 0x40a8a0
push 0xffffffffffffffff
push 0x54905b
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 + 8], 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 0x40a975
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 0x40a95a
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 0x40b125
movzx ecx, word [esi + 0x18]
test cx, cx
lea eax, [esi + 0x18]
je 0x40a997
cmp cx, 0xffff
jne 0x40aa2f
movzx ecx, word [eax + 2]
add eax, 2
mov dword [esp + 0x20], ecx
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x40a9b8
cmp cx, 0xffff
jne 0x40aa51
movzx ebx, word [eax + 2]
add eax, 2
mov dword [esp + 0x1c], ebx
add eax, 2
mov dword [esp + 0x24], eax
cmp word [esp + 0x20], 0
push 8
lea ecx, [esp + 0x18]
jne 0x40ac2f
push str.CONTROL
call fcn.0040468d
test bx, bx
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
je 0x40aa77
movzx edx, bx
push edx
lea eax, [esp + 0x30]
push str.IDR_R_hu
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
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
jmp 0x40aab2
push 0x100
lea edx, [esp + 0x26c]
push edx
push eax
mov ecx, ebp
call fcn.00404b6f
test eax, eax
jne 0x40a99a
jmp 0x40b133
push 0x100
lea ecx, [esp + 0x36c]
push ecx
push eax
mov ecx, ebp
call fcn.00404b6f
test eax, eax
mov dword [esp + 0x24], eax
jne 0x40a9bf
jmp 0x40b133
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 + 0x14]
push eax
lea ecx, [esp + 0x30]
push str.IDC_C_hu
push ecx
call edi
lea eax, [esp + 0x38]
add esp, 0xc
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40aad0
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
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40ab12
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 0x40ab36
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]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40ab60
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 + 8]
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 0x40abb3
sub eax, edx
je 0x40abdf
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 + 0x12]
movsx ecx, word [esi + 0x10]
movsx edx, word [esi + 0xe]
push eax
movsx eax, word [esi + 0xc]
push ecx
push edx
push eax
lea ecx, [esp + 0x3c]
push str._hd__hd__hd__hd
push ecx
call edi
lea eax, [esp + 0x44]
add esp, 0x18
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40ac10
sub eax, edx
push eax
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x1c]
call fcn.00404c0a
jmp 0x40b090
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.0x40ac50
jmp dword [eax*4 + 0x40b190]
mov ecx, dword [esi + 8]
push 0x200
lea eax, [esp + 0x6c]
push eax
push 0x1a
push 0x5b9288
push ecx
mov ecx, ebp
call fcn.0040214e
mov edi, dword [esi + 8]
mov byte [esp + 0x54], 0
xor ecx, ecx
lea ecx, [ecx]
mov edx, dword [ecx*8 + 0x5b95f0]
mov eax, edx
and eax, edi
cmp eax, edx
je 0x40ac99
add ecx, 1
cmp ecx, 7
jb 0x40ac80
jmp 0x40acb0
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.0x40ac50
push str.EDITTEXT
lea ecx, [esp + 0x18]
call fcn.00402676
mov eax, dword [esi + 8]
push 0x200
lea edx, [esp + 0x6c]
push edx
push 0xe
push 0x5b93c0
push eax
jmp 0x40adcf
mov edx, dword [esi + 8]
push 0x200
lea ecx, [esp + 0x6c]
push ecx
push 0x1e
push 0x5b9500
push edx
mov ecx, ebp
call fcn.0040214e
mov edi, dword [esi + 8]
mov byte [esp + 0x54], 0
xor ecx, ecx
nop
mov edx, dword [ecx*8 + 0x5b9628]
mov eax, edx
and eax, edi
cmp eax, edx
je 0x40ad41
add ecx, 1
cmp ecx, 4
jb 0x40ad20
lea edx, [esp + 0x54]
push edx
jmp 0x40acb5
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 0x40acb5
push 0x562c98
lea ecx, [esp + 0x18]
call fcn.00402676
mov ecx, dword [esi + 8]
push 0x200
lea eax, [esp + 0x6c]
push eax
push 0x10
push 0x5b9430
push ecx
jmp 0x40adcf
push 0x562c88
lea ecx, [esp + 0x18]
call fcn.00402676
mov eax, dword [esi + 8]
push 0x200
lea edx, [esp + 0x6c]
push edx
push 0xa
push 0x5b94b0
push eax
jmp 0x40adcf
push 0x562c7c
lea ecx, [esp + 0x18]
call fcn.00402676
mov edx, dword [esi + 8]
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 0x40ae25
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 0x40ae80
mov edi, dword [esp + 0x20]
cmp di, 0x85
je 0x40ae80
cmp di, 0x84
je 0x40ae80
cmp di, 0x83
je 0x40ae80
cmp di, 0x81
je 0x40ae80
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 + 0x14]
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]
jmp 0x40aea0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40aea0
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 0x40afd4
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]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40af40
sub eax, edx
je 0x40af69
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 + 8]
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 + 0x12]
movsx edx, word [esi + 0x10]
movsx eax, word [esi + 0xe]
push ecx
movsx ecx, word [esi + 0xc]
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 0x40b087
movsx ecx, word [esi + 0x12]
movsx edx, word [esi + 0x10]
movsx eax, word [esi + 0xe]
push ecx
movsx ecx, word [esi + 0xc]
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
push 0x562ce4
lea ecx, [esp + 0x18]
call fcn.00401e1f
lea eax, [esp + 0x68]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40b020
sub eax, edx
je 0x40b049
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x18]
call fcn.00401e1f
push 0x562c78
lea ecx, [esp + 0x18]
call fcn.00401e1f
mov eax, dword [esi + 8]
push 0x400
lea edx, [esp + 0x46c]
push edx
push 0x17
push section..data
push eax
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 0x40b072
sub eax, edx
je 0x40b090
lea ecx, [esp + 0x468]
push ecx
lea ecx, [esp + 0x18]
call fcn.00401e1f
push 2
push 0x562cc0
lea ecx, [esp + 0x1c]
call fcn.00404c0a
mov eax, dword [esp + 0x14]
cmp dword [eax - 4], 1
mov esi, dword [eax - 0xc]
jle 0x40b0bd
mov edx, esi
push edx
lea ecx, [esp + 0x18]
call fcn.00402540
mov eax, dword [esp + 0x14]
mov edx, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0x2c]
push ecx
push esi
push eax
push edx
call ebx
test eax, eax
je 0x40b125
mov ecx, dword [esp + 0x24]
movzx eax, word [ecx]
test ax, ax
je 0x40b14b
movzx esi, ax
add esi, ecx
push str.___Dialog_Contains_Creation_Data__r_n
lea ecx, [esp + 0x18]
call fcn.00402676
mov eax, dword [esp + 0x14]
cmp dword [eax - 4], 1
mov edi, dword [eax - 0xc]
jle 0x40b112
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 ebx
test eax, eax
jne 0x40b14e
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 0x40b164
lea esi, [ecx + 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