Function at 0x418bb0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5d1081
push eax
mov dword fs:[0], esp
mov eax, dword [ecx]
sub esp, 0x98
push ebx
push ebp
push esi
push edi
call dword [eax + 0xc0]
mov ecx, eax
call fcn.005c891c
xor ebx, ebx
cmp eax, ebx
je 0x418f83
mov ecx, dword [eax + 0x3c]
mov dword [esp + 0x1c], ecx
mov ecx, 0x87f5b8
call fcn.00596130
push ebx
push ebx
mov ecx, 0x87f5b8
call fcn.00593890
mov edi, eax
push edi
call fcn.005b449a
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x418c25
mov ecx, 0x87f5b8
call fcn.00596140
jmp 0x418f83
push edi
push esi
mov ecx, 0x87f5b8
call fcn.00593890
mov ecx, 0x87f5b8
call fcn.00596140
lea ecx, [esp + 0x70]
call fcn.0041b6e0
push 0x20
lea ecx, [esp + 0xa0]
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xa0], ebx
call fcn.0041b410
push str.UTF_8
lea ecx, [esp + 0xa0]
mov byte [esp + 0xb4], 1
mov dword [esp + 0x90], ebx
mov dword [esp + 0x9c], ebx
call fcn.0041a280
cmp edi, 4
mov dword [esp + 0xb0], 2
jb 0x418d37
lea ecx, [esp + 0x70]
call fcn.0041ba00
push 0x64
lea ecx, [esp + 0x68]
call fcn.0041c320
lea edx, [esp + 0x70]
lea ecx, [esp + 0x64]
push edx
mov byte [esp + 0xb4], 3
call fcn.0041c350
mov ax, word [esi]
xor ebp, ebp
and eax, 0xfefe
cmp eax, 0xfefe
jne 0x418ceb
mov ebp, 2
jmp 0x418d01
cmp byte [esi], 0xef
jne 0x418d01
cmp byte [esi + 1], 0xbb
jne 0x418d01
cmp byte [esi + 2], 0xbf
jne 0x418d01
mov ebp, 3
cmp ebp, edi
jae 0x418d22
mov edx, edi
lea ecx, [esp + 0x64]
sub edx, ebp
push ecx
lea eax, [esi + ebp]
push edx
push eax
lea ecx, [esp + 0x7c]
call fcn.0041bbd0
add ebp, eax
cmp ebp, edi
jb 0x418d05
mov ecx, dword [esp + 0x6c]
mov byte [esp + 0xb0], 2
push ecx
call fcn.005b44c3
add esp, 4
push esi
call fcn.005b44c3
mov edx, dword [esp + 0x20]
add esp, 4
lea eax, [esp + 0x70]
lea esi, [edx + 0x58]
push eax
mov ecx, esi
call fcn.0054b410
mov ecx, esi
call fcn.00557190
mov ebp, eax
push ebp
call fcn.005b449a
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x418db0
lea ecx, [esp + 0x70]
mov dword [esp + 0xb0], 5
call fcn.0041ba00
mov ecx, dword [esp + 0x9c]
mov byte [esp + 0xb0], 4
push ecx
call fcn.005b44c3
add esp, 4
lea ecx, [esp + 0x70]
mov dword [esp + 0xb0], 0xffffffff
call fcn.0041b790
jmp 0x418f83
push ebp
push edi
mov ecx, esi
call fcn.0055dd50
lea ecx, [esp + 0x28]
call fcn.0041b1a0
lea ecx, [esp + 0x34]
mov byte [esp + 0xb0], 6
call fcn.0041b1a0
lea ecx, [esp + 0x40]
mov byte [esp + 0xb0], 7
call fcn.0041b1a0
lea ecx, [esp + 0x4c]
mov byte [esp + 0xb0], 8
call fcn.0041b1a0
lea ecx, [esp + 0x58]
mov byte [esp + 0xb0], 9
call fcn.0041b1a0
push 0x87f5fc
lea ecx, [esp + 0x28]
mov byte [esp + 0xb4], 0xa
call fcn.00401750
push 0x20
lea ecx, [esp + 0x14]
mov byte [esp + 0xb4], 0xb
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
call fcn.00401510
mov edx, dword [esp + 0x10]
mov dword [esp + 0x18], ebx
push str.AutoSave.smc
lea ecx, [esp + 0x14]
mov byte [esp + 0xb4], 0xc
mov word [edx], bx
call fcn.00401610
cmp dword [esp + 0x18], ebx
je 0x418ea4
lea eax, [esp + 0x10]
lea ecx, [esp + 0x34]
push eax
mov dword [esp + 0x28], 1
call fcn.00405c40
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x48], ebx
push 0x2e
mov word [ecx], bx
lea ecx, [esp + 0x38]
call fcn.004015e0
cmp eax, ebx
jle 0x418ebe
lea edx, [esp + 0x40]
inc eax
push edx
push eax
lea ecx, [esp + 0x3c]
call fcn.00401350
jmp 0x418ebe
mov eax, dword [esp + 0x34]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x3c], ebx
mov word [eax], bx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x48], ebx
mov word [ecx], bx
lea edx, [esp + 0x28]
lea ecx, [esp + 0x58]
push edx
call fcn.00405c40
push 0x3a
lea ecx, [esp + 0x5c]
call fcn.00405b40
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x58]
push eax
call fcn.004018e0
mov ecx, dword [esp + 0x34]
cmp word [ecx], bx
je 0x418f07
push 0x5c
lea ecx, [esp + 0x5c]
call fcn.00405b40
lea edx, [esp + 0x34]
lea ecx, [esp + 0x58]
push edx
call fcn.004018e0
push ebx
push ebx
push 2
push ebx
push ebx
push 0xc0000000
push ebx
lea ecx, [esp + 0x74]
call fcn.00405830
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, ebx
je 0x418f43
lea eax, [esp + 0x20]
push ebx
push eax
push ebp
push edi
push esi
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.005b44c3
mov ecx, dword [esp + 0x14]
mov byte [esp + 0xb4], 0xb
push ecx
call fcn.005b44c3
add esp, 8
lea ecx, [esp + 0x24]
mov byte [esp + 0xb0], 2
call fcn.004012d0
lea ecx, [esp + 0x70]
mov dword [esp + 0xb0], 0xffffffff
call fcn.0041a520
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret