Function at 0x401c93
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0x6c
mov eax, 0x464522
call fcn.0046049c
mov ebx, ecx
push ebx
mov dword [ebp - 0x6c], ebx
call fcn.0045091b
push 2
xor edi, edi
push edi
push ebx
call fcn.0045123f
push ebx
call fcn.00451150
push edi
mov esi, eax
push edi
push ebx
mov dword [ebp - 0x64], esi
call fcn.0045123f
lea eax, [esi + 1]
push eax
call fcn.0045010c
add esp, 0x24
mov dword [ebp - 0x60], eax
mov dword [ebp - 4], edi
cmp eax, edi
jne 0x401ce4
push edi
jmp 0x401fd4
push ebx
push esi
push 1
push eax
call fcn.00450dce
add esp, 0x10
cmp esi, eax
je 0x401cfd
push dword [ebp - 0x60]
jmp 0x401fd4
mov ebx, dword [ebp - 0x60]
mov byte [ebx + esi], 0
cmp byte [0x477314], 0
jne 0x401d40
xor eax, eax
mov byte [eax + 0x477314], 0x56
mov byte [eax + 0x477315], 0x45
mov byte [eax + 0x477316], 0x52
add eax, 3
cmp eax, 0x12
jb 0x401d0f
cmp byte [0x477314], 0
mov byte [0x477326], 0
je 0x401fd3
mov eax, 0x477314
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401d48
sub eax, edx
mov dword [ebp - 0x70], eax
cmp eax, 0xd
jb 0x401fd3
push edi
push edi
push edi
push edi
push edi
mov eax, 0x46b810
push eax
push str.tah_v1.1.1149
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.004054e9
push dword [eax]
mov ebx, str.__s
push 0x12
lea eax, [ebp - 0x38]
push ebx
push eax
call fcn.00450312
mov esi, dword [ebp - 0x74]
add esp, 0x34
cmp esi, edi
je 0x401d99
call fcn.00401000
call fcn.00405c46
mov dword [ebp - 0x74], eax
cmp eax, edi
je 0x401cf5
cmp byte [eax], 0
je 0x401cf5
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401db5
mov ecx, dword [0x476158]
sub eax, edx
mov dword [ebp - 0x5c], eax
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401dcc
sub eax, esi
cmp dword [ebp - 0x5c], eax
jb 0x401cf5
push ecx
push 0x15
lea eax, [ebp - 0x50]
push ebx
push eax
call fcn.00450312
add esp, 0x10
cmp byte [0x477340], 0
jne 0x401e23
mov eax, 0x5243
movzx ecx, ax
mov eax, ecx
shl ecx, 0x10
or eax, ecx
mov edi, 0x477340
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
cmp byte [0x477340], 0
mov byte [0x477350], 0
je 0x401cf5
mov eax, 0x477340
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401e2b
mov ecx, dword [0x47615c]
sub eax, edx
mov dword [ebp - 0x68], eax
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401e42
sub eax, esi
cmp dword [ebp - 0x68], eax
jb 0x401cf5
push ecx
push 0x10
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.00450312
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x64]
and dword [ebp - 0x58], 0
sub ecx, eax
add esp, 0x10
cmp dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x60]
sbb ebx, ebx
not ebx
and ebx, ecx
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x70]
mov edi, dword [ebp - 0x54]
mov esi, 0x477314
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x401e95
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401ec1
lea eax, [ebp - 0x38]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401e9f
sub eax, edx
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x54]
call fcn.004562c0
mov eax, dword [ebp - 0x70]
add dword [ebp - 0x58], eax
add esp, 0xc
add dword [ebp - 0x54], eax
inc dword [ebp - 0x58]
inc dword [ebp - 0x54]
cmp dword [ebp - 0x58], ebx
jbe 0x401e7f
mov eax, dword [ebp - 0x64]
and dword [ebp - 0x58], 0
mov ecx, eax
sub ecx, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x60]
sbb ebx, ebx
not ebx
and ebx, ecx
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x54]
mov esi, dword [ebp - 0x74]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x401efb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401f27
lea eax, [ebp - 0x50]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401f05
sub eax, edx
push eax
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x54]
call fcn.004562c0
mov eax, dword [ebp - 0x5c]
add dword [ebp - 0x58], eax
add esp, 0xc
add dword [ebp - 0x54], eax
inc dword [ebp - 0x58]
inc dword [ebp - 0x54]
cmp dword [ebp - 0x58], ebx
jbe 0x401ee7
mov eax, dword [ebp - 0x64]
and dword [ebp - 0x5c], 0
mov ecx, eax
sub ecx, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x68]
mov eax, dword [ebp - 0x60]
sbb ebx, ebx
not ebx
and ebx, ecx
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x68]
mov edi, dword [ebp - 0x54]
mov esi, 0x477340
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x401f63
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401f8f
lea eax, [ebp - 0x24]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401f6d
sub eax, edx
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x54]
call fcn.004562c0
mov eax, dword [ebp - 0x68]
add dword [ebp - 0x5c], eax
add esp, 0xc
add dword [ebp - 0x54], eax
inc dword [ebp - 0x5c]
inc dword [ebp - 0x54]
cmp dword [ebp - 0x5c], ebx
jbe 0x401f4d
push dword [ebp - 0x6c]
call fcn.0045091b
push 0
push 0
push dword [ebp - 0x6c]
call fcn.0045123f
push dword [ebp - 0x6c]
push dword [ebp - 0x64]
push 1
push dword [ebp - 0x60]
call fcn.00450f42
cmp dword [ebp - 0x64], eax
push dword [ebp - 0x60]
sete bl
call fcn.00450117
add esp, 0x24
mov al, bl
jmp 0x401fdc
push ebx
call fcn.00450117
xor al, al
pop ecx
call fcn.004604e6
ret