Function at 0x455000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push ebx
push esi
push edi
xor edi, edi
push 0x200
lea eax, [ebp - 0x230]
push edi
push eax
xor esi, esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x14], edi
call sub.MSVCRT.dll_memset
lea ecx, [ebp - 4]
push ecx
push edi
push 1
call fcn.0044a5b0
add esp, 0x18
test eax, eax
je 0x4550de
mov edx, dword [ebp - 4]
cmp byte [edx], 0
jle 0x4550bf
cmp dword [0x4c6c38], edi
mov dword [0x4c6030], edi
mov dword [0x4c6034], edi
je 0x455099
call fcn.00447430
test eax, eax
jne 0x455099
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x11]
test cl, cl
je 0x4550bf
mov eax, dword [eax + 0xd]
push edi
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x10]
push edx
push edi
push eax
push 0xff
call fcn.00457a50
add esp, 0x18
test eax, eax
je 0x4551b4
jmp 0x4550bf
mov eax, dword [ebp - 4]
push edi
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [eax + 0xd]
lea edx, [ebp - 0x10]
push edx
push edi
push ecx
push 0xff
call fcn.00457a50
add esp, 0x18
test eax, eax
je 0x4551b4
mov edx, dword [ebp - 4]
mov ebx, dword [edx + 1]
lea eax, [ebp - 4]
push eax
add esi, ebx
push esi
push 1
call fcn.0044a5b0
add esp, 0xc
test eax, eax
jne 0x455045
mov ecx, dword [ebp - 0x10]
mov edx, dword [0x49e980]
push 0x455650
push 0x1b
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_qsort]
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
mov edx, dword [ebp - 0xc]
mov ebx, dword [sym.imp.MSVCRT.dll_fwrite]
push esi
push 1
mov dword [ebp - 0x28], eax
mov eax, dword [0x4c6d88]
add edx, 0x66
push 0x66
push eax
mov dword [ebp - 0xc], edx
call ebx
mov eax, dword [ebp - 0xc]
mov ecx, dword [0x4c6d88]
push esi
push 1
add eax, 0xa
push 0xa
push ecx
mov dword [ebp - 0xc], eax
call ebx
mov eax, dword [0x4c6ce8]
add esp, 0x34
cmp eax, edi
jne 0x455162
mov edx, dword [ebp - 0xc]
push esi
add edx, 0x200
push 1
mov dword [ebp - 0xc], edx
lea edx, [ebp - 0x230]
push 0x200
push edx
call ebx
add esp, 0x10
mov eax, dword [ebp - 0x10]
cmp eax, edi
jle 0x455194
mov edx, dword [ebp - 0xc]
shl eax, 5
push eax
add edx, eax
push edi
push 0x4a6c20
mov dword [ebp - 0xc], edx
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 0x10]
push esi
push eax
push 0x20
push 0x4a6c20
call ebx
mov eax, dword [ebp - 0x10]
add esp, 0x1c
cmp eax, edi
mov ecx, dword [0x49e980]
mov dword [ebp - 0x24], edi
jle 0x4554cb
lea edi, [ecx + 0x1a]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 0x4a6c20
jmp 0x4551ca
push 8
call fcn.0040c4d0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x1c]
mov edx, dword [edi - 0x16]
lea ecx, [ebp - 8]
push ecx
push edx
push 0
call fcn.0044a5b0
mov eax, dword [ebp - 8]
mov cl, byte [eax + 5]
mov dl, byte [edi]
push 2
mov byte [ebp + 0xb], cl
mov byte [eax + 5], dl
call fcn.0044a7f0
mov eax, dword [0x49ec84]
mov eax, dword [eax + 0x15]
mov edx, dword [ebp - 8]
push 0
or edi, 0xffffffff
push edi
lea ecx, [ebp - 0x30]
push ecx
push eax
push edx
mov dword [ebp - 4], eax
call fcn.00467500
add esp, 0x24
test eax, eax
je 0x45549e
mov eax, dword [0x49ec78]
mov ecx, dword [eax + 0x15]
mov word [ecx + 0x35], di
mov edx, dword [0x49ec78]
mov eax, dword [edx + 0x15]
mov word [eax + 0x37], di
mov ecx, dword [0x49ec78]
mov edx, dword [ecx + 0x15]
mov word [edx + 0x39], di
mov eax, dword [0x49ec78]
mov ecx, dword [eax + 0x15]
mov word [ecx + 0x3b], di
mov edx, dword [0x49ec78]
mov eax, dword [edx + 0x15]
mov word [eax + 0x3d], 0
mov eax, dword [ebp - 8]
mov cl, byte [eax]
cmp cl, 0x52
jne 0x455272
mov ecx, dword [ebp - 4]
push ecx
push eax
call fcn.004566d0
jmp 0x45547d
cmp cl, 0x51
jne 0x45529c
mov edi, eax
add eax, 0x2d
push eax
call fcn.00459220
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
push edx
or ecx, eax
push edi
mov dword [ebp - 0x14], ecx
call fcn.00456800
add esp, 0xc
jmp case.default.0x4552ae
cmp cl, 0x15
jne 0x4552f1
movsx ecx, byte [eax + 0x1d]
cmp ecx, 3
ja case.default.0x4552ae
jmp dword [ecx*4 + 0x4555b4]
mov ecx, dword [ebp - 4]
push ecx
push eax
call fcn.00456530
jmp 0x45547d
mov edx, dword [ebp - 4]
push edx
push eax
call fcn.00456630
jmp 0x45547d
mov ecx, dword [ebp - 4]
push ecx
push eax
call fcn.00456590
jmp 0x45547d
mov edx, dword [ebp - 4]
push edx
push eax
call fcn.004564e0
jmp 0x45547d
cmp cl, 0x7a
je 0x455467
cmp cl, 0x7b
je 0x455462
test byte [eax + 0x5c], 2
je 0x455330
mov edi, dword [ebp - 0x18]
push 0x1f
add eax, 0x3d
push eax
push edi
call sub.MSVCRT.dll_memcpy
push edi
mov byte [edi + 0x1f], 0
call fcn.00459220
mov ecx, dword [ebp - 0x14]
add esp, 0x10
or ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], ecx
add eax, 0x1d
push eax
call fcn.00459220
mov edi, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
or edi, eax
mov eax, dword [0x49ec78]
mov ecx, dword [eax + 0x15]
push ecx
push edx
mov dword [ebp - 0x14], edi
call fcn.00459160
mov eax, dword [ebp - 8]
movsx ecx, byte [eax + 0x69]
add esp, 0xc
dec ecx
cmp ecx, 0x26
ja case.0x45536f.12
xor edx, edx
mov dl, byte [ecx + 0x4555f4]
jmp dword [edx*4 + 0x4555c4]
mov ecx, dword [ebp - 4]
push ecx
push eax
call fcn.00455910
jmp 0x4553f8
mov edx, dword [ebp - 4]
push edx
push eax
call fcn.004583a0
jmp 0x4553f8
mov ecx, dword [ebp - 4]
push ecx
push eax
call fcn.00455a40
jmp 0x4553f8
mov edx, dword [ebp - 4]
push edx
push eax
call fcn.00455cd0
jmp 0x4553f8
mov ecx, dword [ebp - 4]
push ecx
push eax
call fcn.00456150
jmp 0x4553f8
mov edx, dword [ebp - 4]
push edx
push eax
call fcn.00456410
jmp 0x4553f8
mov ecx, dword [ebp - 4]
push ecx
push eax
call fcn.00457300
jmp 0x4553f8
mov edx, dword [ebp - 4]
push edx
push eax
call fcn.00457180
jmp 0x4553f8
mov ecx, dword [ebp - 4]
push ecx
push eax
call fcn.00456fe0
jmp 0x4553f8
mov edx, dword [ebp - 4]
push edx
push eax
call fcn.00456480
jmp 0x4553f8
mov ecx, dword [ebp - 4]
push ecx
push eax
call fcn.00455ee0
mov eax, dword [ebp - 8]
add esp, 8
mov al, byte [eax + 0x69]
cmp al, 1
je 0x455419
cmp al, 0xa
je 0x455419
cmp al, 0xb
je 0x455419
cmp al, 0x11
je 0x455419
cmp al, 0x26
je 0x455419
cmp al, 0x27
jne case.default.0x4552ae
push 2
call fcn.0044a7f0
mov edx, dword [0x49ec84]
mov eax, dword [edx + 0x15]
mov edx, dword [ebp - 8]
push 0
push 1
lea ecx, [ebp - 0x30]
push ecx
push eax
push edx
mov dword [ebp - 4], eax
call fcn.00467500
add esp, 0x18
test eax, eax
je case.default.0x4552ae
mov ecx, dword [0x49ec78]
mov edx, dword [ecx + 0x15]
push 8
lea eax, [ebp - 0x30]
push eax
add edx, 0x21
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp case.default.0x4552ae
cmp cl, 0x7a
jne 0x455473
mov ecx, dword [ebp - 4]
push ecx
push eax
call fcn.00456b80
jmp 0x45547d
mov edx, dword [ebp - 4]
push edx
push eax
call fcn.00456990
add esp, 8
mov eax, dword [0x49ec78]
mov ecx, dword [eax + 0x15]
mov edx, dword [ecx + 0x2f]
add dword [ebp - 0xc], edx
mov eax, dword [eax + 0x15]
mov ecx, dword [eax + 0x2f]
push esi
push ecx
push 1
push eax
call ebx
add esp, 0x10
mov edx, dword [ebp - 8]
mov al, byte [ebp + 0xb]
mov edi, dword [ebp - 0x18]
mov byte [edx + 5], al
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
inc eax
add edi, 0x20
add edx, 0x1b
cmp eax, ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edx
jl 0x4551c7
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
mov ecx, dword [ebp - 0x28]
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push 0
push ecx
push esi
mov edi, eax
call ebx
mov edx, dword [0x4c6d88]
mov ax, word [ebp - 0x10]
mov word [edx + 0x1e], ax
mov ecx, dword [0x4c6d88]
mov dx, word [ebp - 0x20]
mov word [ecx], dx
mov eax, dword [0x4c6d88]
mov cl, byte [ebp - 0x14]
mov byte [eax + 0x64], cl
mov edx, dword [0x4c6d88]
push esi
push 1
mov word [edx + 0x1c], 0
mov eax, dword [0x4c6d88]
push 0x66
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
push 4
lea ecx, [ebp - 0xc]
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
push 2
lea edx, [ebp - 0x10]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x40
push 0
call dword [sym.imp.MSVCRT.dll_time]
push esi
push 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
mov eax, dword [0x4c6ce8]
add esp, 0x14
test eax, eax
jne 0x455585
push esi
push 1
lea ecx, [ebp - 0x230]
push 0x200
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
mov eax, dword [ebp - 0x10]
test eax, eax
jle 0x45559e
push esi
push eax
push 0x20
push 0x4a6c20
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
push 0
push edi
push esi
call ebx
add esp, 0xc
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret