Function at 0x45ca30
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x380
mov dl, byte [0x5167f8]
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x85]
mov byte [esp + 0x84], dl
mov byte [esp + 0x188], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x189]
push 0x20
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x88]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x398]
lea ecx, [esp + 0x18c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x68]
mov dword [esp + 0x38], ecx
mov ecx, dword [0x517ff4]
push eax
push 0x835
push ecx
mov dword [esp + 0x28], 0x4c
mov dword [esp + 0x34], str.Cheat_Code_File_.txt_
mov dword [esp + 0x4c], edx
mov dword [esp + 0x48], 0x104
mov dword [esp + 0x5c], 6
mov dword [esp + 0x64], 0x4a30e8
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [esp + 0x18]
lea edx, [esp + 0x64]
xor ebx, ebx
push eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x48], ebx
call sub.comdlg32.dll_GetSaveFileNameA
test eax, eax
jne 0x45cb0a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x380
ret
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push 0x80
push 5
push ebx
push ebx
lea ecx, [esp + 0x19c]
push 0x40000000
push ecx
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x45cb5d
push ebx
push 0x80
push 2
push ebx
push ebx
lea edx, [esp + 0x19c]
push 0x40000000
push edx
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x45cb5d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x380
ret
mov ecx, dword [0x517ffc]
cmp ecx, ebx
jne 0x45cb74
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x380
ret
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [esp + 0x85]
mov byte [esp + 0x84], 0x3b
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x45cb8a
lea edi, [esp + 0x84]
or ecx, 0xffffffff
xor eax, eax
mov dl, byte [0x4a30e2]
repne scasb al, byte es:[edi]
mov cx, word [0x4a30e0]
dec edi
lea eax, [esp + 0x14]
push ebx
mov word [edi], cx
push eax
or ecx, 0xffffffff
xor eax, eax
mov byte [edi + 2], dl
lea edi, [esp + 0x8c]
repne scasb al, byte es:[edi]
not ecx
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
dec ecx
push ecx
lea ecx, [esp + 0x90]
push ecx
push esi
call ebp
test eax, eax
jne 0x45cbf7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x380
ret
mov eax, dword [0x52023c]
mov dword [esp + 0x10], ebx
cmp eax, ebx
jle 0x45cc79
mov ebx, 0x5181c8
lea edx, [esp + 0x28c]
push edx
push ebx
call fcn.0045b630
lea edi, [esp + 0x294]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
mov ax, word [0x4a30e0]
mov cl, byte [0x4a30e2]
dec edi
lea edx, [esp + 0x14]
push 0
push edx
mov word [edi], ax
xor eax, eax
mov byte [edi + 2], cl
lea edi, [esp + 0x294]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x294]
push ecx
push eax
push esi
call ebp
test eax, eax
je 0x45cbe3
mov eax, dword [esp + 0x10]
mov ecx, dword [0x52023c]
inc eax
add ebx, 0x40
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x45cc09
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x380
ret