Function at 0x4538a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, 1
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x3c], eax
mov eax, 0x7fff
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0xc], eax
mov eax, 0x7d00
push ebx
xor ebx, ebx
mov word [ebp - 0xe], ax
mov word [ebp - 0x10], ax
mov eax, dword [ebp + 8]
push edi
lea edi, [eax + 0x14]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp byte [edi], 0
mov dword [ebp - 0x18], ebx
je 0x453dae
mov ecx, dword [0x49ec78]
push esi
mov dword [ebp - 4], ebx
movsx eax, byte [edi]
mov esi, dword [ecx + 0x15]
inc edi
dec eax
cmp eax, 0x2b
ja case.0x453920.15
xor edx, edx
mov dl, byte [eax + 0x453df0]
jmp dword [edx*4 + 0x453db4]
push 4
lea eax, [ebp + 8]
push edi
push eax
call sub.MSVCRT.dll_memcpy
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
add esp, 0xc
add edi, 4
cmp eax, ecx
jne 0x45394d
cmp dword [ebp - 0x20], 1
jne 0x453d7d
push 4
lea edx, [ebp + 8]
mov byte [esi], 1
push edx
inc esi
push esi
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp + 8]
mov ecx, 5
add esp, 0xc
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ebx
jmp 0x453d84
movsx eax, byte [edi]
mov edx, dword [ebp - 0x24]
inc edi
cmp eax, edx
mov dword [ebp - 0x4c], eax
je 0x453da4
mov byte [esi], 3
mov ecx, 2
mov byte [esi + 1], al
mov dword [ebp - 4], ecx
mov dword [ebp - 0x24], eax
jmp 0x453d84
push 4
lea ecx, [ebp - 0x14]
push edi
push ecx
call sub.MSVCRT.dll_memcpy
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
add esp, 0xc
add edi, 4
cmp eax, edx
jne 0x4539c4
cmp dword [ebp - 0x2c], 1
jne 0x453d7d
push 4
lea eax, [ebp - 0x14]
mov byte [esi], 2
push eax
inc esi
push esi
call sub.MSVCRT.dll_memcpy
mov edx, dword [ebp - 0x14]
mov ecx, 5
add esp, 0xc
mov dword [ebp - 4], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], ebx
jmp 0x453d84
movsx eax, byte [edi]
mov dword [ebp - 8], eax
inc edi
jmp 0x453d4e
mov byte [esi], 0x34
mov eax, dword [edi + 0xbd]
shl eax, 2
mov dword [ebp - 8], eax
add eax, 0xc1
push eax
inc esi
push edi
push esi
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 8]
mov ecx, dword [edi + eax + 0xc1]
lea edi, [edi + eax + 0xc1]
push ecx
lea eax, [esi + eax + 0xc1]
push edi
push eax
mov dword [ebp - 4], ecx
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
lea edx, [eax + ecx + 0xc2]
add esp, 0x18
add edi, eax
mov dword [ebp - 4], edx
jmp 0x453d7d
mov byte [esi], 0x2a
mov eax, dword [edi]
push eax
push edi
inc esi
push esi
mov dword [ebp - 4], eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 4]
add esp, 0xc
add edi, eax
inc eax
mov dword [ebp - 4], eax
jmp 0x453d7d
movsx eax, byte [edi]
mov dword [ebp - 8], eax
shl eax, 2
mov dword [ebp - 4], eax
mov byte [esi], 0x2c
mov cl, byte [ebp - 8]
inc edi
inc esi
mov byte [esi], cl
mov edx, dword [ebp - 4]
push edx
inc esi
push edi
push esi
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 4]
add edi, eax
push 0x10e
add esi, eax
add eax, 2
push edi
push esi
mov dword [ebp - 4], eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 4]
add esp, 0x18
add edi, 0x10e
add eax, 0x10e
mov dword [ebp - 4], eax
jmp 0x453d7d
movsx eax, byte [edi]
mov dword [ebp - 8], eax
shl eax, 2
mov dword [ebp - 4], eax
mov byte [esi], 0x29
mov cl, byte [ebp - 8]
inc edi
inc esi
mov byte [esi], cl
mov edx, dword [ebp - 4]
push edx
push edi
inc esi
push esi
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 4]
add esp, 0xc
add edi, eax
add eax, 2
mov dword [ebp - 4], eax
jmp 0x453d7d
inc edi
jmp 0x453da4
mov byte [esi], 0x49
inc dword [ebp - 4]
mov eax, dword [edi + 0xbd]
shl eax, 2
mov dword [ebp - 8], eax
add eax, 0xc1
push eax
push edi
inc esi
push esi
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 0xc1]
add esp, 0xc
lea edi, [edi + eax + 0xc1]
mov dword [ebp - 4], edx
mov dword [ebp - 0x18], 1
jmp 0x453d7d
mov byte [esi], 0x4a
inc dword [ebp - 4]
mov dword [ebp - 0x18], ebx
jmp 0x453d7d
mov eax, dword [ebp - 0x30]
mov ecx, dword [edi + 0x18]
cmp ecx, eax
lea ebx, [edi + 0x18]
jne 0x453b6b
cmp dword [ebp - 0x34], 1
jne 0x453b93
push 4
mov byte [esi], 4
inc esi
push ebx
push esi
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 4]
mov ecx, dword [ebx]
add esp, 0xc
add esi, 4
add eax, 5
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], eax
mov dword [ebp - 0x34], 0
mov edx, dword [ebp - 0x38]
mov eax, dword [edi + 0x1c]
cmp eax, edx
lea ebx, [edi + 0x1c]
jne 0x453ba6
cmp dword [ebp - 0x3c], 1
jne 0x453bce
push 4
mov byte [esi], 5
inc esi
push ebx
push esi
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebx]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 4]
add esp, 0xc
add esi, 4
add eax, 5
mov dword [ebp - 4], eax
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x40]
mov byte [esi], 0x10
mov ecx, dword [edi + 0x21]
inc esi
mov dword [esi], ecx
add dword [ebp - 4], 5
movsx edx, byte [edi + 0x25]
add esi, 4
cmp edx, eax
je 0x453c09
mov byte [esi], 7
mov al, byte [edi + 0x25]
inc esi
mov byte [esi], al
movsx ecx, byte [edi + 0x25]
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp - 4]
mov eax, 2
inc esi
add ecx, eax
mov dword [ebp - 4], ecx
jmp 0x453c0e
mov eax, 2
movsx edx, byte [edi + 0x20]
cmp edx, dword [ebp - 0x44]
je 0x453c30
mov byte [esi], 8
mov cl, byte [edi + 0x20]
inc esi
mov byte [esi], cl
movsx edx, byte [edi + 0x20]
mov ecx, dword [ebp - 4]
inc esi
add ecx, eax
mov dword [ebp - 0x44], edx
mov dword [ebp - 4], ecx
movsx ecx, byte [edi + 0x75]
cmp ecx, dword [ebp - 0xc]
je 0x453c52
mov byte [esi], 9
mov dl, byte [edi + 0x75]
inc esi
mov byte [esi], dl
movsx ecx, byte [edi + 0x75]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 4]
inc esi
add ecx, eax
mov dword [ebp - 4], ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [edi]
push eax
lea ecx, [ebp - 8]
push ecx
push esi
call fcn.0045a980
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
add edx, eax
add esi, eax
mov dword [ebp - 4], edx
lea ebx, [edi + 0x26]
mov byte [esi], 0x28
push ebx
inc esi
call sub.MSVCRT.dll_strlen
inc eax
mov dword [ebp - 8], eax
mov byte [esi], al
inc esi
push ebx
push esi
call sub.MSVCRT.dll_strcpy
push esi
call fcn.004086f0
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
lea ecx, [edx + eax + 2]
add esp, 0x20
add edi, 0x76
mov dword [ebp - 4], ecx
xor ebx, ebx
jmp 0x453d7d
movsx eax, word [edi]
add edi, 2
cmp eax, 0xff
lea edx, [eax*4]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
jg 0x453cd1
mov byte [esi], 0x29
mov al, byte [ebp - 8]
inc esi
mov byte [esi], al
inc esi
jmp 0x453cdf
mov byte [esi], 0x27
mov cx, word [ebp - 8]
inc esi
mov word [esi], cx
add esi, 2
mov edx, dword [ebp - 4]
push edx
push edi
push esi
call sub.MSVCRT.dll_memcpy
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
add esp, 0xc
add esi, ecx
cmp eax, ebx
mov dword [ebp - 0x48], ebx
jne 0x453d23
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x14]
jne 0x453d09
cmp dword [ebp - 0x4c], ebx
je 0x453d23
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
push eax
push edi
lea ecx, [ebp - 0x48]
push ecx
push esi
call fcn.0045a6b0
add esp, 0x18
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 8]
xor edx, edx
add edi, eax
cmp esi, 0xff
mov esi, dword [ebp - 0x48]
setg dl
add edx, 2
add edx, esi
add eax, edx
mov dword [ebp - 4], eax
jmp 0x453d7d
movsx eax, word [edi]
mov dword [ebp - 8], eax
add edi, 2
mov edx, dword [ebp - 0xc]
push edx
lea edx, [ebp - 0x10]
push edx
push eax
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
mov ecx, dword [ecx + 0x15]
push eax
push ecx
call fcn.0045a6b0
mov edx, dword [ebp - 8]
add esp, 0x18
lea edi, [edi + edx*4]
jmp 0x453d7d
push 0x64
call fcn.00403240
add esp, 4
mov ecx, dword [ebp - 4]
cmp ecx, ebx
je 0x453d9e
mov eax, dword [ebp + 0xc]
push eax
push 1
push ecx
mov ecx, dword [0x49ec78]
mov edx, dword [ecx + 0x15]
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
mov ecx, dword [0x49ec78]
cmp byte [edi], 0
jne 0x453904
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret