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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42749d
mov eax, dword fs:[0]
push eax
sub esp, 0x2e8
mov eax, dword [0x452658]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x21a]
push edx
mov dword [ebp - 0x2d0], eax
mov word [ebp - 0x21c], cx
call fcn.00415960
add esp, 0xc
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4083d5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4083d5
push ebx
call fcn.00413283
mov edi, eax
xor eax, eax
add esp, 4
mov dword [ebp - 0x2d4], edi
cmp edi, eax
je 0x4083d5
lea edx, [ebp - 0x2ec]
push edx
mov dword [ebp - 0x2d8], eax
mov dword [ebp - 0x2ec], eax
mov dword [ebp - 0x2e8], eax
mov dword [ebp - 0x2e4], eax
mov dword [ebp - 0x2e0], eax
mov dword [ebp - 0x2dc], eax
lea eax, [ebp - 0x2d8]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4083d5
lea esi, [edi + ebx - 1]
mov bl, byte [esi]
test bl, bl
jne 0x408098
nop
mov bl, byte [esi - 1]
dec esi
test bl, bl
je 0x408090
lea ecx, [esi - 1]
mov dword [ebp - 0x2c8], ecx
cmp esi, edi
jbe 0x4083d5
lea esp, [esp]
sub byte [esi], bl
push 2
push 0x44e528
push esi
call fcn.0041458e
add esp, 0xc
test eax, eax
je 0x4080d0
dec esi
cmp esi, edi
ja 0x4080b0
jmp 0x4083d5
add esi, 2
xor ecx, ecx
cmp esi, ecx
je 0x4083d5
mov eax, dword [ebp - 0x2c8]
cmp eax, ecx
je 0x4083d5
mov edx, eax
sub edx, esi
cmp edx, 0x2710
jg 0x4083d5
mov edx, 0xf
mov dword [ebp - 0x2cc], esi
mov dword [ebp - 0x25c], edx
mov dword [ebp - 0x260], ecx
mov byte [ebp - 0x270], cl
mov dword [ebp - 4], ecx
mov dword [ebp - 0x240], edx
mov dword [ebp - 0x244], ecx
mov byte [ebp - 0x254], cl
mov byte [ebp - 4], 1
cmp esi, eax
jae 0x4083b6
lea esp, [esp]
mov eax, dword [ebp - 0x2cc]
push 0x44e52c
push eax
call fcn.00414650
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4083b6
cmp ebx, dword [ebp - 0x2c8]
jae 0x4083b6
mov eax, dword [ebp - 0x2cc]
mov ecx, ebx
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x224], 0xf
mov dword [ebp - 0x228], 0
mov byte [ebp - 0x238], 0
call fcn.00402330
lea edi, [ebp - 0x238]
lea esi, [ebp - 0x270]
mov byte [ebp - 4], 2
call fcn.004019d0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x224], 0x10
jb 0x4081cd
mov edx, dword [ebp - 0x238]
push edx
call fcn.0041381f
add esp, 4
push 0x44e530
push ebx
lea esi, [ebx + 1]
call fcn.00414650
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4081ec
cmp ebx, dword [ebp - 0x2c8]
jb 0x4081f2
mov ebx, dword [ebp - 0x2c8]
mov eax, ebx
sub eax, esi
push eax
push esi
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x224], 0xf
mov dword [ebp - 0x228], 0
mov byte [ebp - 0x238], 0
call fcn.00402330
lea edi, [ebp - 0x238]
lea esi, [ebp - 0x254]
mov byte [ebp - 4], 3
call fcn.004019d0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x224], 0x10
jb 0x40824f
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.0041381f
add esp, 4
mov edx, dword [ebp - 0x240]
mov ecx, dword [ebp - 0x254]
inc ebx
mov dword [ebp - 0x2cc], ebx
mov eax, ecx
cmp edx, 0x10
jae 0x40826f
lea eax, [ebp - 0x254]
add eax, dword [ebp - 0x244]
cmp edx, 0x10
jae 0x408280
lea ecx, [ebp - 0x254]
xor edx, edx
mov word [ebp - 0x28c], dx
mov edx, dword [ebp - 0x2d0]
push edx
push eax
push ecx
lea eax, [ebp - 0x28c]
mov ebx, 7
xor edi, edi
push eax
mov dword [ebp - 0x278], ebx
mov dword [ebp - 0x27c], edi
call fcn.00409b20
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x25c]
mov ecx, dword [ebp - 0x270]
mov eax, ecx
cmp edx, 0x10
jae 0x4082ce
lea eax, [ebp - 0x270]
add eax, dword [ebp - 0x260]
cmp edx, 0x10
jae 0x4082df
lea ecx, [ebp - 0x270]
xor edx, edx
mov word [ebp - 0x238], dx
mov edx, dword [ebp - 0x2d0]
push edx
push eax
push ecx
lea eax, [ebp - 0x238]
push eax
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x228], edi
call fcn.00409b20
lea ecx, [ebp - 0x28c]
push ecx
lea edx, [ebp - 0x2c4]
push edx
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 5
call fcn.00408f30
mov byte [ebp - 4], 6
mov esi, dword [ebp - 0x2d0]
mov ecx, eax
mov edx, esi
call fcn.00409bf0
push eax
lea eax, [ebp - 0x2f4]
push eax
push esi
call fcn.00409680
lea esi, [ebp - 0x2c4]
call fcn.00408400
mov esi, 8
cmp dword [ebp - 0x224], esi
jb 0x40836e
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.0041381f
add esp, 4
xor edx, edx
mov byte [ebp - 4], 1
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x228], edi
mov word [ebp - 0x238], dx
cmp dword [ebp - 0x278], esi
jb 0x40839e
mov eax, dword [ebp - 0x28c]
push eax
call fcn.0041381f
add esp, 4
mov ecx, dword [ebp - 0x2cc]
mov edi, dword [ebp - 0x2d4]
cmp ecx, dword [ebp - 0x2c8]
jb 0x408140
push edi
call fcn.00414549
add esp, 4
lea ecx, [ebp - 0x254]
call fcn.00401f60
lea ecx, [ebp - 0x270]
call fcn.00401f60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00413810
mov esp, ebp
pop ebp
ret 4