Function at 0x411f3a
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.00403579
mov edx, eax
pop eax
or eax, 0xffffffff
test edx, edx
pop ecx
jle 0x4121a4
mov dword [ebp - 0x1c], edx
push ebx
push ebx
push 0
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [eax + 0x10]
push edi
push eax
call fcn.00428e70
push ebx
push esi
push str.Load__s___u
push 0x45c2c0
mov dword [0x465c60], eax
call fcn.0040418c
mov esi, dword [0x465c60]
mov edx, dword [ebp - 0x1c]
add esp, 0x1c
lea edi, [esi + 2]
mov byte [esi], 0
mov byte [esi + 1], 0xa
push ebx
push edi
push edx
add ebx, edi
call fcn.004035ff
mov edx, dword [ebp - 0x1c]
mov byte [ebx], 0
push eax
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebx], 0
add esp, 0xc
mov eax, edi
mov dl, byte [eax]
test dl, dl
je 0x411fd5
cmp dl, 0xd
je 0x411fd2
mov byte [edi], dl
inc edi
inc eax
jmp 0x411fc4
mov byte [edi], 0
inc esi
mov ebx, 1
mov al, byte [esi]
test al, al
jne 0x411feb
xor eax, eax
jmp 0x4121a4
cmp al, 0xa
lea edi, [esi + 1]
jne 0x412172
cmp byte [esi + 1], 0xa
je 0x412172
mov byte [esi], 0
push ecx
push ecx
push str._n__t
push edi
call fcn.0040343e
add esp, 0x10
test eax, eax
je 0x411fe4
sub esp, 0xc
mov dword [ebp - 0x1c], eax
push eax
call fcn.00404b59
mov esi, eax
mov al, byte [eax]
add esp, 0x10
test al, al
je 0x411fe4
cmp al, 0x3d
mov edx, dword [ebp - 0x1c]
je 0x412055
push esi
push ebx
push str.Lang_file_error_at_line__u_near__.20s_n
push 0x45c2c0
call fcn.0040418c
xor eax, eax
add esp, 0x10
cmp byte [esi], 0xa
sete al
add ebx, eax
jmp 0x411fde
sub esp, 0xc
inc esi
mov byte [edx], 0
push esi
call fcn.00404b59
add esp, 0x10
mov esi, eax
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax*8 + 0x42b9e0]
test eax, eax
je 0x412116
push edx
push edx
push eax
push edi
call fcn.004033f7
add esp, 0x10
test eax, eax
jne 0x41210e
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax*8 + 0x42b9e4]
mov eax, dword [0x465c60]
mov ecx, dword [edx]
mov dword [ebp - 0x20], eax
cmp esi, ecx
setb al
cmp ecx, dword [ebp - 0x20]
mov edi, eax
setb al
or edi, eax
mov eax, edi
mov byte [ebp - 0x21], al
mov eax, 0x42c640
mov edi, dword [eax + 0x10]
test edi, edi
jne 0x4120cb
cmp dword [eax], 0
jne 0x4120d8
jmp 0x4120f4
cmp ecx, edi
jne 0x4120d8
cmp byte [ebp - 0x21], 0
je 0x4120d8
mov dword [eax + 0x10], esi
mov edi, dword [eax + 0x14]
cmp ecx, edi
jne 0x4120ef
test edi, edi
je 0x4120ef
cmp dword [ebp - 0x20], edi
ja 0x4120ec
cmp esi, edi
jae 0x4120ef
mov dword [eax + 0x14], esi
add eax, 0x18
jmp 0x4120bd
mov eax, 0x433240
mov edi, dword [eax]
test edi, edi
je 0x41210a
cmp ecx, edi
jne 0x412105
mov dword [eax], esi
add eax, 4
jmp 0x4120f9
mov dword [edx], esi
jmp 0x41212a
inc dword [ebp - 0x1c]
jmp 0x41206e
push eax
push edi
push str.Lang_element__.12s_not_found_n
push 0x45c2c0
call fcn.0040418c
add esp, 0x10
push edi
push edi
push 0x43b460
push esi
call fcn.004034b5
add esp, 0x10
test eax, eax
mov edi, eax
je 0x411fe4
push ecx
push ecx
push eax
push esi
call fcn.00411f19
lea ebx, [ebx + eax + 2]
mov eax, dword [ebp - 0x1c]
add esp, 0x10
mov byte [edi], 0
cmp dword [eax*8 + 0x42b9e0], 0
je 0x41219c
sub esp, 0xc
push esi
call fcn.00411eb8
add esp, 0x10
jmp 0x41219c
push edx
push edx
push 0x43b460
push edi
call fcn.004034b5
add esp, 0x10
test eax, eax
mov edi, eax
je 0x411fe4
push eax
push eax
push edi
push esi
call fcn.00411f19
lea ebx, [ebx + eax + 2]
add esp, 0x10
lea esi, [edi + 1]
jmp 0x411fde
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret