Function at 0x4137aa
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 0x413a04
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.0042d128
add esp, 0x10
mov dword [0x46ce40], eax
test eax, eax
je 0x413a04
push ebx
push esi
push str.Load__s___u
push 0x4634a0
call fcn.0040423a
mov eax, dword [0x46ce40]
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 0x41384d
cmp cl, 0xd
je 0x41384a
mov byte [edx], cl
inc edx
inc eax
jmp 0x41383c
mov byte [edx], 0
mov ebx, 1
mov al, byte [esi]
test al, al
jne 0x413862
xor eax, eax
jmp 0x413a07
lea edi, [esi + 1]
cmp al, 0xa
jne 0x4139d2
cmp byte [esi + 1], 0xa
je 0x4139d2
mov byte [esi], 0
push ecx
push ecx
push str._n__t
push edi
call fcn.00403442
add esp, 0x10
test eax, eax
je 0x41385b
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 0x41385b
cmp al, 0x3d
mov edx, dword [ebp - 0x1c]
je 0x4138c8
push esi
push ebx
push str.Lang_file_error_at_line__u_near__.20s_n
push 0x4634a0
call fcn.0040423a
add esp, 0x10
cmp byte [esi], 0xa
jne 0x413855
inc ebx
jmp 0x413855
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 0x413976
push edx
push edx
push eax
push edi
call fcn.004033fb
add esp, 0x10
test eax, eax
jne 0x41396e
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax*8 + 0x42fa64]
mov eax, dword [0x46ce40]
mov ecx, dword [edx]
mov dword [ebp - 0x20], eax
mov eax, 0x4308c0
mov edi, dword [eax + 0x10]
test edi, edi
jne 0x41392f
cmp dword [eax], 0
jne 0x41393f
mov eax, 0x438c20
jmp 0x413964
cmp edi, ecx
jne 0x41393f
cmp ecx, dword [ebp - 0x20]
jb 0x41393c
cmp ecx, esi
jbe 0x41393f
mov dword [eax + 0x10], esi
mov edi, dword [eax + 0x14]
cmp edi, ecx
jne 0x413956
test edi, edi
je 0x413956
cmp edi, esi
ja 0x413953
cmp dword [ebp - 0x20], edi
jbe 0x413956
mov dword [eax + 0x14], esi
add eax, 0x18
jmp 0x41391c
cmp edi, ecx
jne 0x413961
mov dword [eax], esi
add eax, 4
mov edi, dword [eax]
test edi, edi
jne 0x41395b
mov dword [edx], esi
jmp 0x41398a
inc dword [ebp - 0x1c]
jmp 0x4138e1
push eax
push edi
push str.Lang_element__.20s_not_found_n
push 0x4634a0
call fcn.0040423a
add esp, 0x10
push edi
push edi
push 0x440ab4
push esi
call fcn.004034b9
add esp, 0x10
mov edi, eax
test eax, eax
je 0x41385b
push ecx
push ecx
push eax
push esi
call fcn.0041378e
mov byte [edi], 0
add esp, 0x10
lea ebx, [ebx + eax + 2]
mov eax, dword [ebp - 0x1c]
cmp dword [eax*8 + 0x42fa60], 0
je 0x4139fc
sub esp, 0xc
push esi
call fcn.00413724
add esp, 0x10
jmp 0x4139fc
push edx
push edx
push 0x440ab4
push edi
call fcn.004034b9
add esp, 0x10
mov edi, eax
test eax, eax
je 0x41385b
push eax
push eax
push edi
push esi
call fcn.0041378e
add esp, 0x10
lea ebx, [ebx + eax + 2]
lea esi, [edi + 1]
jmp 0x413855
or eax, 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret