Function at 0x423680
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a28ee
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x616dec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x6249b0]
cmp eax, dword [ecx + 4]
jle 0x4236fe
push 0x6249b0
call fcn.00554216
add esp, 4
cmp dword [0x6249b0], 0xffffffff
jne 0x4236fe
call fcn.0042f8b0
push 0x5a92d0
call fcn.005545bd
add esp, 4
push 0x6249b0
call fcn.005541d7
add esp, 4
lea eax, [ebp - 0x8c]
mov ecx, 0x624878
push eax
call fcn.00430630
push str.SysCfg.jrpx
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00425640
add esp, 4
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x78]
cmp eax, 8
jb 0x423744
inc eax
lea ecx, [ebp - 0x8c]
push eax
push dword [ebp - 0x8c]
call fcn.00424d00
push 0
push 0
push 4
xor eax, eax
mov dword [ebp - 0x78], 7
cmp dword [ebp - 0x18], 8
push 0
mov word [ebp - 0x8c], ax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push 1
push 0xc0000000
push eax
mov dword [ebp - 0x7c], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x423935
push 2
push 0x5fd34c
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
call fcn.00424a00
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x5c]
push 1
push 0x5fd350
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
call fcn.00424a00
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 5
push eax
sub esp, 0x18
lea esi, [ebp - 0x5c]
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x4237f5
mov eax, dword [ecx]
jmp 0x4237f7
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp + 8]
push 0
push eax
call fcn.00424b00
mov edx, esi
lea ecx, [ebp - 0xa4]
call fcn.00430ed0
add esp, 0x1c
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 0x10
jb 0x423823
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x44]
call fcn.00424400
mov eax, dword [ebp - 0x90]
cmp eax, 0x10
jb 0x42384a
inc eax
lea ecx, [ebp - 0xa4]
push eax
push dword [ebp - 0xa4]
call fcn.00424d60
mov dword [ebp - 0x90], 0xf
mov dword [ebp - 0x94], 0
mov byte [ebp - 0xa4], 0
mov eax, dword [ebp - 0x48]
cmp eax, 0x10
jb 0x42387a
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00424d60
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x60]
cmp eax, 0x10
jb 0x4238a5
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.00424d60
mov esi, dword [ebp + 0x18]
push 0
push 0
push 0
push edi
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0x14]
push 0
push ecx
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x423904
push 0x5fd354
push 0
call fcn.0043b3c0
add esp, 8
jmp 0x42391a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.createSystemCfg_Error_WriteFile:_d
push 0
call fcn.0043b3c0
add esp, 0xc
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x42392f
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00424d60
test edi, edi
je 0x423952
jmp 0x42394b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.createSystemCfg_Error:_d
push 2
call fcn.0043b3c0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x423967
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00424d00
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x1c], 0
cmp eax, 0x10
jb 0x423990
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.00424d60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005540cc
mov esp, ebp
pop ebp
ret 0x18