Function at 0x1223b99
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x124cc20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x103
push esi
xor edi, edi
lea eax, [ebp - 0x21f]
push edi
push eax
mov byte [ebp - 0x220], 0
call fcn.01231470
push esi
lea eax, [ebp - 0x11b]
push edi
push eax
mov byte [ebp - 0x11c], 0
call fcn.01231470
push esi
lea eax, [ebp - 0x323]
push edi
push eax
mov byte [ebp - 0x324], 0
call fcn.01231470
mov esi, 0x1247c20
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor eax, eax
lea edi, [ebp - 0xd]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x24
stosb byte es:[edi], al
lea eax, [ebp - 0x220]
push eax
mov ebx, 0x104
push ebx
call dword [0x12441ec]
lea eax, [ebp - 0x18]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1223c25
lea edi, [ebp - 0x220]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1223c35
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
lea eax, [ebp - 0x11c]
push eax
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
call dword [0x12441e8]
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x324]
push ebx
push eax
call fcn.012305b2
lea eax, [ebp - 0x324]
push 0x5c
push eax
call fcn.01230090
add esp, 0x14
test eax, eax
je 0x1223c89
mov byte [eax], 0
lea eax, [ebp - 0x220]
push 0x1247c2c
push eax
call fcn.012306de
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1223dd4
push esi
xor edi, edi
inc edi
push edi
push 9
push 0x1247c30
call fcn.0122fcac
push esi
push edi
push 5
push 0x1247c3c
call fcn.0122fcac
lea eax, [ebp - 0x11c]
add esp, 0x20
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1223cd1
push esi
sub eax, ecx
push edi
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.0122fcac
push esi
push edi
push 2
mov ebx, 0x1247c44
push ebx
call fcn.0122fcac
push esi
push edi
push 0xa
push 0x1247c48
call fcn.0122fcac
lea eax, [ebp - 0x11c]
add esp, 0x30
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1223d12
push esi
sub eax, ecx
push edi
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.0122fcac
push esi
push edi
push 0xf
push 0x1247c54
call fcn.0122fcac
push esi
push edi
push 7
push 0x1247c64
call fcn.0122fcac
lea eax, [ebp - 0x324]
add esp, 0x30
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1223d52
push esi
sub eax, ecx
push edi
push eax
lea eax, [ebp - 0x324]
push eax
call fcn.0122fcac
push esi
push edi
push 3
push ebx
call fcn.0122fcac
push esi
push edi
push 5
push 0x1247c3c
call fcn.0122fcac
lea eax, [ebp - 0x220]
add esp, 0x30
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1223d8e
push esi
sub eax, ecx
push edi
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0122fcac
push esi
push edi
push edi
push 0x1247c6c
call fcn.0122fcac
push esi
call fcn.0122face
add esp, 0x24
xor eax, eax
push eax
push eax
push eax
lea ecx, [ebp - 0x220]
push ecx
push 0x1247c70
push eax
call dword [0x1244258]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0122f3e6
leave
ret