Function at 0x41383e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x24
mov esi, dword [ebp + 8]
push 0
push esi
call fcn.0040357d
pop edx
pop ecx
test eax, eax
jle 0x413a98
mov edi, eax
push eax
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.0042d4e4
add esp, 0x10
mov dword [0x46de40], eax
test eax, eax
je 0x413a98
push ebx
push esi
push str.Load__s___u
push 0x4644a0
call fcn.0040423a
mov eax, dword [0x46de40]
add esp, 0xc
lea edx, [eax + 2]
mov word [eax], 0xa00
lea esi, [eax + 1]
push ebx
push edx
push edi
mov dword [ebp - 0x1c], edx
call fcn.00403603
mov edx, dword [ebp - 0x1c]
add ebx, edx
mov byte [ebx], 0
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1c]
mov byte [ebx], 0
add esp, 0xc
mov eax, edx
mov cl, byte [eax]
test cl, cl
je 0x4138e1
cmp cl, 0xd
je 0x4138de
mov byte [edx], cl
inc edx
inc eax
jmp 0x4138d0
mov byte [edx], 0
mov ebx, 1
mov al, byte [esi]
test al, al
jne 0x4138f6
xor eax, eax
jmp 0x413a9b
lea edi, [esi + 1]
cmp al, 0xa
jne 0x413a66
cmp byte [esi + 1], 0xa
je 0x413a66
mov byte [esi], 0
push ecx
push ecx
push str._n__t
push edi
call fcn.00403442
add esp, 0x10
test eax, eax
je 0x4138ef
sub esp, 0xc
mov dword [ebp - 0x1c], eax
push eax
call fcn.00404cfd
add esp, 0x10
mov esi, eax
mov al, byte [eax]
test al, al
je 0x4138ef
cmp al, 0x3d
mov edx, dword [ebp - 0x1c]
je 0x41395c
push esi
push ebx
push str.Lang_file_error_at_line__u_near__.20s_n
push 0x4644a0
call fcn.0040423a
add esp, 0x10
cmp byte [esi], 0xa
jne 0x4138e9
inc ebx
jmp 0x4138e9
sub esp, 0xc
inc esi
mov byte [edx], 0
push esi
call fcn.00404cfd
mov dword [ebp - 0x1c], 0
add esp, 0x10
mov esi, eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax*8 + 0x42fa60]
test eax, eax
je 0x413a0a
push edx
push edx
push eax
push edi
call fcn.004033fb
add esp, 0x10
test eax, eax
jne 0x413a02
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax*8 + 0x42fa64]
mov eax, dword [0x46de40]
mov ecx, dword [edx]
mov dword [ebp - 0x20], eax
mov eax, 0x4308c0
mov edi, dword [eax + 0x10]
test edi, edi
jne 0x4139c3
cmp dword [eax], 0
jne 0x4139d3
mov eax, 0x438d60
jmp 0x4139f8
cmp edi, ecx
jne 0x4139d3
cmp ecx, dword [ebp - 0x20]
jb 0x4139d0
cmp ecx, esi
jbe 0x4139d3
mov dword [eax + 0x10], esi
mov edi, dword [eax + 0x14]
cmp edi, ecx
jne 0x4139ea
test edi, edi
je 0x4139ea
cmp edi, esi
ja 0x4139e7
cmp dword [ebp - 0x20], edi
jbe 0x4139ea
mov dword [eax + 0x14], esi
add eax, 0x18
jmp 0x4139b0
cmp edi, ecx
jne 0x4139f5
mov dword [eax], esi
add eax, 4
mov edi, dword [eax]
test edi, edi
jne 0x4139ef
mov dword [edx], esi
jmp 0x413a1e
inc dword [ebp - 0x1c]
jmp 0x413975
push eax
push edi
push str.Lang_element__.20s_not_found_n
push 0x4644a0
call fcn.0040423a
add esp, 0x10
push edi
push edi
push 0x441ad4
push esi
call fcn.004034b9
add esp, 0x10
mov edi, eax
test eax, eax
je 0x4138ef
push ecx
push ecx
push eax
push esi
call fcn.00413822
mov byte [edi], 0
add esp, 0x10
lea ebx, [ebx + eax + 2]
mov eax, dword [ebp - 0x1c]
cmp dword [eax*8 + 0x42fa60], 0
je 0x413a90
sub esp, 0xc
push esi
call fcn.004137b8
add esp, 0x10
jmp 0x413a90
push edx
push edx
push 0x441ad4
push edi
call fcn.004034b9
add esp, 0x10
mov edi, eax
test eax, eax
je 0x4138ef
push eax
push eax
push edi
push esi
call fcn.00413822
add esp, 0x10
lea ebx, [ebx + eax + 2]
lea esi, [edi + 1]
jmp 0x4138e9
or eax, 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret