Function at 0x4078b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x244
mov eax, dword [0x42f278]
xor eax, esp
mov dword [esp + 0x23c], eax
push ebx
push ebp
push esi
push edi
push 0x104
lea eax, [esp + 0x44]
push eax
xor ebp, ebp
push ebp
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x40]
call fcn.00401a00
cmp dword [0x43726c], ebp
mov dword [esp + 0x1c], eax
jne 0x407c29
mov esi, dword [eax]
push 2
push 0xffffffffffffffff
push 0xfffffffffffffff9
push esi
call fcn.004105d8
push esi
push 2
lea ecx, [esp + 0x2c]
push 1
push ecx
call fcn.004109fa
add esp, 0x20
cmp eax, 2
jne 0x407bb4
push esi
push 1
lea edx, [esp + 0x1b]
push 1
push edx
call fcn.004109fa
add esp, 0x10
cmp eax, 1
jne 0x407bb4
push esi
push 4
push eax
lea eax, [esp + 0x24]
push eax
call fcn.004109fa
add esp, 0x10
cmp eax, 4
jne 0x407bb4
cmp word [esp + 0x14], 0xfffe
jne 0x407a25
mov ecx, dword [esp + 0x18]
push ebp
add ecx, 0xfffffff9
push ebp
push ecx
push esi
call fcn.004105d8
push esi
push 2
lea edx, [esp + 0x2c]
push 1
push edx
call fcn.004109fa
add esp, 0x20
cmp eax, 2
jne 0x4079b5
push esi
push 1
lea eax, [esp + 0x1b]
push 1
push eax
call fcn.004109fa
add esp, 0x10
cmp eax, 1
jne 0x4079b5
push esi
push 4
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.004109fa
add esp, 0x10
cmp eax, 4
je 0x407a25
push 0x40
push str.fread
push 0x437270
mov dword [0x43726c], 0xd5
call fcn.00410502
add esp, 0xc
push 0x104
lea edx, [esp + 0x44]
push edx
push 0x4372f8
mov word [0x4372f0], bp
mov dword [0x4372f0], 4
call fcn.00410502
add esp, 0xc
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x437500
mov word [0x4374fe], bp
call fcn.00410502
mov dword [0x4372f4], 0x3bd
jmp 0x407c1f
mov eax, dword [esp + 0x18]
push ebp
push ebp
push eax
push esi
call fcn.004105d8
push esi
push 1
lea ecx, [esp + 0x38]
push 0x20
push ecx
call fcn.004109fa
add esp, 0x20
cmp eax, 1
je 0x407abb
push 0x40
push str.fread
push 0x437270
xor ebx, ebx
mov dword [0x43726c], 0xd5
call fcn.00410502
add esp, 0xc
push 0x104
lea edx, [esp + 0x44]
push edx
push 0x4372f8
mov word [0x4372f0], bp
mov dword [0x4372f0], 0x20
call fcn.00410502
add esp, 0xc
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x437500
mov word [0x4374fe], bp
call fcn.00410502
mov dword [0x4372f4], 0x3c8
jmp 0x407c1f
mov edi, 0x42bc40
lea esi, [esp + 0x20]
mov ecx, 4
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x407ad7
lea ebx, [eax + 1]
jmp 0x407c29
mov edi, 0x42bc44
lea esi, [esp + 0x20]
mov ecx, 4
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x407af3
lea ebx, [edx + 2]
jmp 0x407c29
mov edi, 0x42bc48
lea esi, [esp + 0x20]
mov ecx, 4
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x407b0f
lea ebx, [eax + 3]
jmp 0x407c29
mov edi, 0x42bc4c
lea esi, [esp + 0x20]
mov ecx, 4
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x407b2b
lea ebx, [edx + 4]
jmp 0x407c29
mov edi, 0x42bc50
lea esi, [esp + 0x20]
mov ecx, 4
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x407b47
lea ebx, [eax + 5]
jmp 0x407c29
mov edi, 0x42bc54
lea esi, [esp + 0x20]
mov ecx, 4
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x407b63
lea ebx, [edx + 8]
jmp 0x407c29
mov edi, 0x42bc58
lea esi, [esp + 0x20]
mov ecx, 4
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x407b7f
lea ebx, [eax + 9]
jmp 0x407c29
mov edi, 0x42bc5c
lea esi, [esp + 0x20]
mov ecx, 4
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x407b9b
lea ebx, [edx + 0xc]
jmp 0x407c29
mov edi, 0x42bc60
lea esi, [esp + 0x20]
mov ecx, 4
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x407c29
lea ebx, [eax + 0xd]
jmp 0x407c29
push 0x40
push str.fread
push 0x437270
mov dword [0x43726c], 0xd5
call fcn.00410502
add esp, 0xc
push 0x104
lea ecx, [esp + 0x44]
push ecx
push 0x4372f8
mov word [0x4372f0], bp
mov dword [0x4372f0], 4
call fcn.00410502
add esp, 0xc
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x437500
mov word [0x4374fe], bp
call fcn.00410502
mov dword [0x4372f4], 0x3b3
add esp, 0xc
mov word [0x437706], bp
mov esi, dword [esp + 0x1c]
cmp esi, ebp
je 0x407c45
mov edx, dword [esi]
push edx
call fcn.00411205
add esp, 4
push esi
call fcn.00410f1a
add esp, 4
mov ecx, dword [esp + 0x24c]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004104f3
add esp, 0x244
ret