Function at 0x41136b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov esi, dword [ebp + 8]
lea eax, [esi + 0xa]
mov dword [esp], eax
call fcn.00410768
mov ebx, eax
add ebx, 0x7ff
mov eax, ebx
test ebx, ebx
jns 0x411396
lea eax, [ebx + 0x7ff]
mov ebx, eax
and ebx, 0xfffff800
mov dword [esp], ebx
call fcn.00405785
mov dword [ebp - 0x18], eax
lea eax, [esi + 2]
mov dword [esp], eax
call fcn.00410768
mov edx, eax
mov eax, ebx
test ebx, ebx
jns 0x4113c2
lea eax, [ebx + 0x7ff]
sar eax, 0xb
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.0041077b
lea eax, [esi + 0xa]
mov dword [esp], eax
call fcn.00410768
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
mov dword [ebp - 0x28], 0
cmp dword [ebp - 0x28], eax
jge 0x411436
mov edi, dword [ebp - 0x18]
add edi, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edi
cmp byte [edi], 0
jne 0x411422
mov eax, dword [ebp - 0x1c]
add eax, 0x7ff
and eax, 0xfffff800
mov dword [ebp - 0x1c], eax
jmp 0x41142e
inc dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
movzx eax, byte [edx]
add dword [ebp - 0x1c], eax
mov edi, dword [ebp - 0x24]
cmp dword [ebp - 0x1c], edi
jl 0x411402
mov eax, dword [ebp - 0x28]
shl eax, 2
mov dword [esp], eax
call fcn.00405785
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x34], eax
jge 0x411827
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
cmp byte [edx], 0
jne 0x411495
mov eax, dword [ebp - 0x1c]
add eax, 0x7ff
and eax, 0xfffff800
mov dword [ebp - 0x1c], eax
jmp 0x41181b
mov dword [esp], 0x168
call fcn.00405785
mov edi, dword [ebp - 0x2c]
mov dword [edi], eax
mov dword [eax], 0
mov eax, dword [edi]
add eax, 8
mov dword [esp + 8], 0xf1
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov ebx, dword [edi]
mov eax, dword [ebp - 0x20]
add eax, 2
mov dword [esp], eax
call fcn.00410768
mov dword [ebx + 0xfc], eax
mov ebx, dword [edi]
mov eax, dword [ebp - 0x20]
add eax, 0xa
mov dword [esp], eax
call fcn.00410768
mov dword [ebx + 0x100], eax
mov edi, eax
sar edi, 0x1f
mov dword [ebx + 0x104], edi
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov word [eax + 0x108], 0
mov eax, dword [edx]
mov dword [eax + 0x10c], 0
mov eax, dword [edx]
mov dword [eax + 0x138], 0
mov eax, dword [edx]
mov dword [eax + 0x110], 0
mov eax, dword [edx]
mov dword [eax + 0x114], 0
mov eax, dword [edx]
mov dword [eax + 0x118], 0
mov eax, dword [edx]
mov dword [eax + 0x11c], 0
mov edi, dword [ebp - 0x2c]
mov edx, dword [edi]
mov eax, dword [edx + 0xfc]
mov word [edx + 0x124], ax
mov eax, dword [edi]
mov dword [eax + 0x128], 0x7ffffffd
mov eax, dword [edi]
mov dword [eax + 0x12c], 0
mov eax, dword [edi]
mov dword [eax + 0x130], 0
mov eax, dword [edi]
mov dword [eax + 0x134], 0
mov eax, dword [edi]
mov dword [eax + 0x120], 1
mov eax, dword [edi]
mov dword [eax + 0x13c], 0
mov eax, dword [edi]
mov dword [eax + 0x140], 0
mov eax, dword [ebp - 0x20]
movzx esi, byte [eax]
sub esi, 0x21
movzx eax, byte [eax + 0x20]
sub esi, eax
mov edx, dword [ebp - 0x20]
lea edx, [edx + eax + 0x21]
mov dword [ebp - 0x10], edx
test al, 1
jne 0x4115dd
inc edx
mov dword [ebp - 0x10], edx
dec esi
cmp dword [0x45511c], 0
sete al
movzx eax, al
neg eax
and esi, eax
jle 0x411633
mov edi, dword [ebp - 0x2c]
mov eax, dword [edi]
mov dword [eax + 0x130], esi
mov dword [eax + 0x134], esi
mov ebx, dword [edi]
mov dword [esp], esi
call fcn.00405785
mov dword [ebx + 0x12c], eax
mov eax, dword [edi]
mov eax, dword [eax + 0x12c]
mov dword [esp + 8], esi
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov dword [ebp - 0x34], 1
mov edi, dword [ebp - 0x20]
cmp byte [edi + 0x20], 0xcf
ja 0x41166e
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
add edx, 0x29
mov dword [ebp - 0x10], edx
movzx edx, byte [edi + 0x20]
add dword [ebp - 0x10], edx
mov eax, 0xd0
sub eax, edx
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edi, dword [ebp - 0x10]
mov dword [esp], edi
call sub.msvcrt.dll_memset
jmp 0x411680
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov byte [eax + 0xf8], 0
mov eax, dword [edx]
mov byte [eax + 0x28], 0xcf
mov edi, dword [ebp - 0x20]
cmp byte [edi + 0x20], 0x1f
ja 0x411692
cmp dword [0x45505c], 0
je 0x4116a6
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov dword [esp + 4], eax
mov edi, dword [ebp - 0x20]
mov dword [esp], edi
call fcn.00414eb0
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov eax, dword [edx]
mov eax, dword [eax + 0x12c]
mov dword [esp], eax
call fcn.00410e31
cmp eax, 0xffffffff
jne 0x4116e6
mov eax, dword [ebp - 0x20]
add eax, 0x21
mov dword [esp + 8], eax
mov dword [esp + 4], str.Cannot_parse_Rock_Ridge_attributes_for__s._n
mov dword [esp], 0xffffffff
call fcn.0042c48d
mov edi, dword [ebp - 0x2c]
mov eax, dword [edi]
cmp byte [eax + 0x28], 1
jne 0x411760
cmp byte [eax + 0x29], 1
ja 0x411760
cmp dword [eax + 0x10c], 0
je 0x41170e
mov eax, dword [eax + 0x10c]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
cmp dword [eax + 0x114], 0
je 0x41172a
mov eax, dword [eax + 0x114]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov edi, dword [ebp - 0x2c]
mov ebx, dword [edi]
cmp byte [ebx + 0x29], 0
jne 0x411749
mov dword [esp], 0x4517f1
call sub.msvcrt.dll__strdup
mov dword [ebx + 0x10c], eax
jmp 0x411760
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
mov dword [esp], 0x45196e
call sub.msvcrt.dll__strdup
mov dword [ebx + 0x10c], eax
mov edx, dword [str.TRANS.TBL]
mov edi, edx
cld
mov ecx, 0xffffffff
mov al, 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, dword [ebp - 0x20]
add eax, 0x21
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x41180e
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
cmp dword [eax + 0x10c], 0
je 0x4117ab
mov eax, dword [eax + 0x10c]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov edi, dword [ebp - 0x2c]
mov eax, dword [edi]
cmp dword [eax + 0x114], 0
je 0x4117c7
mov eax, dword [eax + 0x114]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
mov eax, dword [str.TRANS.TBL]
mov dword [esp], eax
call sub.msvcrt.dll__strdup
mov dword [ebx + 0x10c], eax
mov eax, dword [ebp - 0x20]
add eax, 2
mov dword [esp], eax
call fcn.00410768
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x20]
add eax, 0xa
mov dword [esp], eax
call fcn.00410768
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x3c], 0
jne 0x41180e
mov dword [ebp - 0x40], 0
add dword [ebp - 0x2c], 4
mov edx, dword [ebp - 0x20]
movzx eax, byte [edx]
add dword [ebp - 0x1c], eax
mov edi, dword [ebp - 0x24]
cmp dword [ebp - 0x1c], edi
jl 0x411472
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x28]
cmp dword [ebp - 0x1c], edx
jge 0x4118df
mov edi, dword [ebp - 0x2c]
mov ebx, dword [edi]
lea eax, [ebx + 0x28]
mov dword [esp], eax
call fcn.00410710
mov esi, eax
test byte [ebx + 0x21], 4
je 0x4118cc
mov edi, 0
cmp edi, dword [ebp - 0x28]
jge 0x4118cc
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
mov edx, eax
add edx, 0x29
mov eax, dword [ebp - 0x30]
mov ebx, dword [eax + edi*4]
lea eax, [ebx + 0x29]
mov dword [esp + 8], esi
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x4118c6
test byte [ebx + 0x21], 4
jne 0x4118c6
mov edx, dword [ebp - 0x44]
mov dword [ebx + 0x13c], edx
mov edi, dword [ebp - 0x2c]
mov eax, dword [edi]
or dword [eax + 0x120], 8
cmp dword [0x455148], 0
jne 0x4118cc
mov dword [0x455144], 1
mov dword [0x455148], 1
jmp 0x4118cc
inc edi
cmp edi, dword [ebp - 0x28]
jl 0x411862
inc dword [ebp - 0x1c]
add dword [ebp - 0x2c], 4
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x1c], eax
jl 0x411840
cmp dword [ebp - 0x3c], 0
setne al
cmp dword [ebp - 0x40], 0
setne dl
movzx eax, al
test edx, eax
je 0x411af6
mov ebx, dword [ebp - 0x40]
add ebx, 0x7ff
mov eax, ebx
test ebx, ebx
jns 0x41190f
mov eax, dword [ebp - 0x40]
add eax, 0xffe
mov ebx, eax
and ebx, 0xfffff800
mov dword [esp], ebx
call fcn.00405785
mov dword [ebp - 0x38], eax
mov eax, ebx
test ebx, ebx
jns 0x41192d
add eax, 0x7ff
sar eax, 0xb
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x38]
mov dword [esp + 4], edx
mov edi, dword [ebp - 0x3c]
mov dword [esp], edi
call fcn.0041077b
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x40], 0
jle 0x411ae6
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x40]
jge 0x41198c
mov edx, dword [ebp - 0x14]
cmp byte [edx], 0xa
je 0x41198c
cmp byte [edx], 0
je 0x41198c
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x40]
jge 0x41198c
mov edi, dword [ebp - 0x14]
cmp byte [edi], 0xa
je 0x41198c
cmp byte [edi], 0
jne 0x411971
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x40]
jge 0x41199d
mov eax, dword [ebp - 0x14]
mov byte [eax], 0
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x1c], 0
mov edi, dword [ebp - 0x28]
cmp dword [ebp - 0x1c], edi
jge 0x411ace
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
add eax, 0x28
mov dword [esp], eax
call fcn.00410710
mov esi, eax
mov ebx, dword [ebp - 0x10]
add ebx, eax
mov eax, ebx
sub eax, dword [ebp - 0x38]
add eax, 2
cmp eax, dword [ebp - 0x40]
jge 0x411abb
mov eax, dword [ebp - 0x48]
add eax, 0x29
mov edx, dword [ebp - 0x10]
add edx, 2
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x411abb
mov edx, dword [ebp - 0x10]
cmp byte [edx + esi + 2], 0x20
jne 0x411abb
lea eax, [ebx + 2]
mov dword [esp + 4], 9
mov dword [esp], eax
call sub.msvcrt.dll_strchr
mov esi, eax
test eax, eax
je 0x411abb
inc esi
cmp byte [esi], 0
je 0x411a81
cld
mov ecx, 0xffffffff
mov al, 0
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
add ecx, 3
mov dword [esp], ecx
call fcn.00405785
mov edx, dword [ebp - 0x48]
mov dword [edx + 0x110], eax
mov dword [esp + 0xc], esi
mov edi, dword [ebp - 0x10]
movzx eax, byte [edi]
mov dword [esp + 8], eax
mov dword [esp + 4], str._c_t_s_n
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov eax, dword [eax + 0x110]
mov dword [esp], eax
call fcn.0042c971
mov edi, dword [ebp - 0x2c]
mov eax, dword [edi]
cmp dword [eax + 0x138], 0
jne 0x411ace
cmp dword [eax + 0x10c], 0
je 0x411aa6
mov eax, dword [eax + 0x10c]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
mov dword [esp], esi
call sub.msvcrt.dll__strdup
mov dword [ebx + 0x10c], eax
jmp 0x411ace
inc dword [ebp - 0x1c]
add dword [ebp - 0x2c], 4
mov edx, dword [ebp - 0x28]
cmp dword [ebp - 0x1c], edx
jl 0x4119b6
mov edi, dword [ebp - 0x14]
inc edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
mov eax, edi
sub eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x40]
jl 0x411959
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.msvcrt.dll_free
jmp 0x411b8f
cmp dword [ebp - 0x34], 0
jne 0x411b8f
cmp dword [0x464a18], 0
jne 0x411b8f
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x35
mov dword [esp + 4], 1
mov dword [esp], str.Warning:_Neither_Rock_Ridge___R__nor_TRANS.TBL___T___n
call sub.msvcrt.dll_fwrite
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x32
mov dword [esp + 4], 1
mov dword [esp], str.name_translations_were_found_on_previous_session._n
call sub.msvcrt.dll_fwrite
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x2d
mov dword [esp + 4], 1
mov dword [esp], str.ISO__8.3__file_names_have_been_used_instead._n
call sub.msvcrt.dll_fwrite
mov dword [0x464a18], 1
cmp dword [ebp - 0x18], 0
je 0x411ba0
mov edx, dword [ebp - 0x18]
mov dword [esp], edx
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp + 0xc]
mov dword [edi], eax
mov eax, dword [ebp - 0x30]
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret