Function at 0x494ba0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x110
push ebp
lea eax, [esp + 0x10]
push str.TanakaFilescharheaderHandW.lst
mov ebp, ecx
push eax
call fcn.00404300
push 1
lea ecx, [esp + 0x1c]
push 0x598194
push ecx
call fcn.00401040
add esp, 0x14
mov dword [esp + 0xc], eax
test eax, eax
jne 0x494be9
push str.v_oo_v_Load_Failed_HandW.lst
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
pop ebp
add esp, 0x110
ret
push ebx
push esi
push edi
push 0x1e
call fcn.005756f6
mov esi, eax
push 0x1e
mov dword [esp + 0x18], esi
call fcn.005756f6
add esp, 8
mov ebx, eax
mov dword [esp + 0x14], 0
add ebp, 0x28e0
mov edx, dword [esp + 0x18]
mov ecx, 7
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
push edx
push 0x1e
push esi
stosw word es:[edi], ax
call fcn.004010b0
add esp, 0xc
test eax, eax
je 0x494d7a
mov ecx, 7
xor eax, eax
mov edi, ebx
xor edx, edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x10]
mov ecx, esi
mov esi, ebx
sub esi, eax
mov al, byte [ecx]
cmp al, 0x2c
je 0x494c69
cmp al, 0xa
je 0x494c69
test al, al
je 0x494c69
mov byte [esi + ecx], al
inc edx
inc ecx
cmp edx, 0x1e
jl 0x494c51
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.005756f6
mov edx, eax
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp - 0xbc], edx
mov esi, ebx
repne scasb al, byte es:[edi]
not ecx
mov edi, edx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0x2c
and ecx, 3
rep stosb byte es:[edi], al
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [ebp - 0xbc]
not ecx
dec ecx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 7
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x18]
push ecx
stosw word es:[edi], ax
call fcn.00576b30
add esp, 0xc
inc eax
je 0x494d6b
mov esi, ebx
xor edx, edx
sub esi, eax
mov cl, byte [eax]
cmp cl, 0xa
je 0x494cfd
test cl, cl
je 0x494cfd
mov byte [esi + eax], cl
inc edx
inc eax
cmp edx, 0x1e
jl 0x494ce8
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.005756f6
mov edx, eax
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [ebp], edx
repne scasb al, byte es:[edi]
not ecx
mov edi, edx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov esi, ebx
and ecx, 3
add ebp, 4
rep stosb byte es:[edi], al
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [ebp - 4]
not ecx
dec ecx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x14]
and ecx, 3
inc eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
cmp eax, 0x2f
mov dword [esp + 0x14], eax
jl 0x494c13
jmp 0x494d7a
push str.v_oo_v_HandW.lst_Data_Err
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, dword [esp + 0x10]
push esi
call fcn.005756eb
push ebx
call fcn.005756eb
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004010e0
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x110
ret