Function at 0x40ef40
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x437c3e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.00412df0
mov ecx, ebp
call fcn.0040f330
lea eax, [esp + 0x5c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, dword [ebp + 0x14]
lea esi, [ebp + 0x14]
push 0
mov ecx, esi
call dword [edx + 4]
lea eax, [esp + 0x5c]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x1c]
call fcn.00404620
lea ecx, [esp + 0x14]
mov dword [esp + 0x168], 0
push ecx
mov ecx, esi
call fcn.00404370
mov edi, dword [esi + 8]
mov dword [esp + 0x168], 0xffffffff
dec edi
js 0x40efea
mov bl, byte [0x444460]
test bl, bl
je 0x40efe7
mov edx, dword [esi + 4]
mov al, bl
mov ecx, 0x444460
mov dl, byte [edx + edi]
cmp al, dl
je 0x40efed
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x40efdb
dec edi
jns 0x40efca
or edi, 0xffffffff
inc edi
lea eax, [esp + 0x14]
push edi
push eax
mov ecx, esi
call fcn.00404f50
mov edi, eax
mov edx, dword [ebp + 0x24]
lea esi, [ebp + 0x24]
push 0
mov ecx, esi
mov dword [esp + 0x16c], 1
call dword [edx + 4]
mov eax, dword [edi + 8]
mov edi, dword [edi + 4]
push eax
push edi
mov ecx, esi
call fcn.004043d0
mov dword [esp + 0x14], 0x43a2d4
lea ecx, [esp + 0x14]
mov dword [esp + 0x168], 2
call fcn.00404d10
or ecx, 0xffffffff
lea edi, [esp + 0x5c]
xor eax, eax
mov dword [esp + 0x168], ecx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x5c]
push 0x2e
push eax
lea edi, [esp + ecx + 0x64]
call fcn.0041cca0
lea ecx, [esp + 0x64]
push 0x2f
push ecx
mov esi, eax
call fcn.0041cca0
add esp, 0x10
test esi, esi
je 0x40f082
test eax, eax
je 0x40f084
cmp eax, esi
jbe 0x40f084
mov esi, edi
lea edx, [esp + 0x14]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], str..cfg
mov dword [esp + 0x34], str..config
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x2c], 0
lea ebx, [esp + 0x30]
mov ecx, dword [eax]
mov dword [esp + 0x24], ecx
mov edi, dword [ebx]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x5c]
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x24]
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00412760
add esp, 4
test eax, eax
je 0x40f118
push 0
push 0x80
push 3
push 0
push 3
lea ecx, [esp + 0x70]
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f14b
mov eax, dword [esp + 0x2c]
add ebx, 4
inc eax
cmp eax, 2
mov dword [esp + 0x2c], eax
jb 0x40f0c2
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
inc eax
add edx, 4
cmp eax, 2
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], edx
jae 0x40f1db
jmp 0x40f0ac
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x1c]
call fcn.004044f0
mov dword [esp + 0x14], 0x43a2e4
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push esi
mov dword [esp + 0x170], 3
call edi
mov edx, dword [esp + 0x1c]
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.00404f00
mov ebx, eax
lea eax, [esp + 0x24]
push 0
push eax
push 0
push esi
call edi
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
push ecx
push ebp
call fcn.00412eb0
mov edi, 0x43a2d4
add esp, 8
mov dword [esp + 0x14], edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x168], 4
call fcn.00404d10
mov dword [esp + 0x168], 0xffffffff
jmp 0x40f1e0
mov edi, 0x43a2d4
mov eax, dword [ebp + 8]
test eax, eax
jle 0x40f1fb
push 2
push eax
mov ecx, ebp
call fcn.00404f00
mov dx, word [0x444b9c]
mov word [eax], dx
mov eax, dword [ebp + 8]
mov ecx, ebp
mov dword [ebp + 0x10], eax
call fcn.00412780
push 0xffffffffffffffff
push str.disableexternal
lea ecx, [esp + 0x44]
call fcn.004044f0
mov dword [esp + 0x3c], 0x43a2e4
push 1
lea ecx, [esp + 0x40]
push 1
lea edx, [esp + 0x54]
push ecx
push edx
mov ecx, ebp
mov dword [esp + 0x178], 5
call fcn.00405930
mov esi, eax
push 0xffffffffffffffff
push str.true
lea ecx, [esp + 0x38]
mov byte [esp + 0x170], 6
call fcn.00404620
lea eax, [esp + 0x30]
mov ecx, esi
push eax
mov byte [esp + 0x16c], 7
call fcn.00404c60
mov esi, 0x43a2d0
mov dword [esp + 0x4c], edi
test eax, eax
mov dword [esp + 0x30], esi
sete bl
lea ecx, [esp + 0x4c]
mov byte [esp + 0x168], 8
call fcn.00416b30
test eax, eax
je 0x40f29e
push eax
call fcn.0041a6b3
add esp, 4
mov dword [esp + 0x4c], esi
mov dword [esp + 0x3c], edi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x168], 9
call fcn.00416b30
test eax, eax
je 0x40f2c7
push eax
call fcn.0041a6b3
add esp, 4
test bl, bl
mov dword [esp + 0x168], 0xffffffff
mov dword [esp + 0x3c], esi
je 0x40f317
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x40f310
cmp esi, eax
jl 0x40f2ef
mov edx, dword [ebp]
push 0
jmp 0x40f30b
mov ecx, dword [ebp + 4]
sub eax, esi
push eax
lea eax, [ecx + esi]
push eax
push ecx
call fcn.0041af00
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
add esp, 0xc
sub eax, esi
push eax
mov ecx, ebp
call dword [edx + 4]
mov dword [ebp + 0x10], 0
mov ecx, dword [esp + 0x160]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x15c
ret