Function at 0x453400
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x126c
call fcn.00474530
mov eax, dword [0x4c709c]
test eax, eax
je 0x453421
push 0x47ea24
lea eax, [ebp - 0x10]
push eax
jmp 0x45342a
push 0x47ea28
lea ecx, [ebp - 0x10]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x10
lea edx, [ebp - 0x10]
push edx
push edi
call dword [sym.imp.MSVCRT.dll__fsopen]
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x453497
push 0x5c
push edi
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
je 0x453461
inc eax
jmp 0x453463
mov eax, edi
push eax
push 0x1c3
call fcn.00410630
add esp, 4
push eax
lea eax, [ebp - 0x2cc]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [ebp - 0x2cc]
push ecx
call fcn.0040d270
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x140
lea edx, [ebp - 0x150]
push 0
push edx
call sub.MSVCRT.dll_memset
mov ebx, dword [sym.imp.MSVCRT.dll_fwrite]
push esi
push 1
lea eax, [ebp - 0x150]
push 0x140
push eax
call ebx
mov edi, dword [sym.imp.MSVCRT.dll_ftell]
push esi
call edi
push esi
mov dword [ebp - 0x150], eax
call fcn.00453750
push esi
call edi
sub eax, dword [ebp - 0x150]
push esi
mov dword [ebp - 0x14c], eax
call edi
push esi
mov dword [ebp - 0x148], eax
call fcn.00455000
add esp, 0x30
test eax, eax
je 0x4536e4
push esi
call edi
sub eax, dword [ebp - 0x148]
mov dword [ebp - 0x144], eax
mov eax, dword [0x4c6ce8]
add esp, 4
test eax, eax
jne 0x45365f
push esi
call edi
push 0x49ee00
push 0x4c8b20
push esi
mov dword [ebp - 0x140], eax
call fcn.004556f0
push 0x49ee14
push 0x4c8a00
push esi
call fcn.004556f0
push 0x49ee28
push 0x4c8a00
push esi
call fcn.004556f0
push 0x49ee3c
push 0x4c8a00
push esi
call fcn.004556f0
push 0x49edec
push 0x4c8a00
push esi
call fcn.004556f0
add esp, 0x40
push 2
lea ecx, [ebp - 4]
push 0x49ee50
push ecx
call sub.MSVCRT.dll_memcpy
push 2
lea edx, [ebp - 2]
push 0x49ee52
push edx
call sub.MSVCRT.dll_memcpy
push 4
lea eax, [ebp - 4]
push eax
push esi
call fcn.00455850
push 0x479b7e
push 0x479850
push esi
call fcn.004557a0
push 0x479ba0
push 0x479850
push esi
call fcn.004557a0
push esi
call edi
mov ecx, dword [ebp - 0x140]
add esp, 0x40
sub eax, ecx
push esi
mov dword [ebp - 0x13c], eax
call edi
push esi
mov dword [ebp - 0x138], eax
call fcn.004580a0
push esi
call edi
sub eax, dword [ebp - 0x138]
push esi
mov dword [ebp - 0x134], eax
call edi
mov ecx, dword [0x4c6d88]
mov dword [ebp - 0x128], eax
movsx edx, word [ecx + 0x1e]
push 0xfa0
lea eax, [ebp - 0x126c]
push 1
push eax
mov dword [ebp - 0x124], edx
call sub.MSVCRT.dll_memset
mov ecx, dword [0x4c6d88]
movsx edx, word [ecx + 0x1e]
push esi
push edx
push 1
lea eax, [ebp - 0x126c]
push eax
call ebx
mov ecx, dword [0x4c6d88]
movsx edx, word [ecx + 0x1e]
add esp, 0x2c
cmp eax, edx
je 0x45365f
push 0x1d1
call fcn.00410630
push eax
call fcn.0040d270
add esp, 8
push esi
call edi
push esi
mov dword [ebp - 0x120], eax
call fcn.00454490
add esp, 8
test eax, eax
je 0x4536e4
push esi
call edi
sub eax, dword [ebp - 0x120]
push esi
mov dword [ebp - 0x11c], eax
call edi
push esi
mov dword [ebp - 0x118], eax
call fcn.00458770
add esp, 0xc
test eax, eax
je 0x4536e4
push esi
call edi
sub eax, dword [ebp - 0x118]
push esi
mov dword [ebp - 0x114], eax
call edi
push esi
mov dword [ebp - 0x110], eax
call fcn.00458da0
add esp, 0xc
test eax, eax
je 0x4536e4
push esi
call edi
sub eax, dword [ebp - 0x110]
push esi
mov dword [ebp - 0x10c], eax
call edi
push esi
mov dword [ebp - 0x108], eax
call fcn.00459040
add esp, 0xc
test eax, eax
jne 0x453701
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll__unlink]
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call edi
sub eax, dword [ebp - 0x108]
push esi
mov dword [ebp - 0x104], eax
call dword [sym.imp.MSVCRT.dll_rewind]
push esi
push 1
lea ecx, [ebp - 0x150]
push 0x140
push ecx
call ebx
mov eax, dword [0x4c6d88]
xor edx, edx
mov dl, byte [eax + 0x64]
push edx
push esi
call fcn.00454e60
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x24
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret