Function at 0x412ab1
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push esi
push 0x64
xor esi, esi
lea eax, [ebx + 0x2bc]
push esi
push eax
call sub.msvcrt.dll_memset
push dword [ebp + 8]
mov dword [ebp - 0xc], esi
call fcn.0040cc19
add esp, 0x10
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x412d5c
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
lea esi, [ebx + 0x40]
push edi
mov eax, esi
call fcn.0040b37d
push edi
push dword [esi]
push dword [ebp + 8]
call fcn.0040c080
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, dword [esi]
and dword [ebp - 0x18], 0
lea eax, [ebx + 0x2b8]
mov dword [ebp - 0x1c], esi
mov dword [ebx + 0x318], esi
push eax
lea esi, [ebp - 0x20]
mov dword [ebp - 0x20], edi
mov dword [ebx + 0x31c], edi
call fcn.0040b584
push 0
push 4
pop edi
call fcn.0040b2d5
lea eax, [ebx + 0x2c8]
push eax
call fcn.0040b573
push 0
call fcn.0040b2d5
push 0
call fcn.0040b2d5
lea eax, [ebx + 0x2d0]
push eax
lea eax, [ebx + 0x2d4]
mov ecx, esi
call fcn.0040b7f1
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
call fcn.0040b2d5
mov eax, dword [ebp + 8]
push 0xc
xor edx, edx
pop ecx
div ecx
and dword [ebp - 0x10], 0
test eax, eax
jbe 0x412d5b
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp + 8], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp + 8]
push eax
push 4
pop edi
lea esi, [ebp - 0x20]
call fcn.0040b2d5
lea eax, [ebp - 8]
push eax
call fcn.0040b2d5
lea eax, [ebp - 0x14]
push eax
call fcn.0040b2d5
cmp dword [ebp + 8], 3
jne 0x412bcd
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
dec dword [ebp - 4]
jne 0x412b95
mov eax, dword [ebp - 0x10]
test eax, eax
jbe 0x412d5b
push 0
push 8
pop edi
lea esi, [ebp - 0x20]
mov dword [ebp - 0x18], eax
call fcn.0040b2d5
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 4
pop edi
call fcn.0040b2d5
mov eax, dword [ebp - 0x10]
cmp eax, 7
mov dword [ebx + 0x2e4], eax
push 0
jne 0x412c11
push 0x1e
jmp 0x412c13
push 0xa
pop edi
call fcn.0040b2d5
and dword [ebp + 8], 0
and dword [ebp - 0x14], 0
lea eax, [ebp + 8]
push eax
push 4
pop edi
lea esi, [ebp - 0x20]
call fcn.0040b2d5
xor edi, edi
push 0
inc edi
call fcn.0040b2d5
lea eax, [ebp - 0x14]
push eax
push 4
pop edi
call fcn.0040b2d5
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
sub dword [ebp + 8], 5
add ecx, eax
mov dword [ebp - 0x14], ecx
add eax, 0x10
mov ecx, esi
mov dword [ebx + 0x2e0], eax
call fcn.0040b2bf
cmp eax, dword [ebp + 8]
jb 0x412d51
and dword [ebp - 8], 0
push 0x18
lea eax, [ebp - 8]
push eax
mov eax, 0x419230
call fcn.00410051
test eax, eax
je 0x412d51
and dword [ebp - 4], 0
push 8
pop ecx
lea eax, [ebp - 4]
push eax
push 0x2c
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 8]
mov byte [ebp - 0x6c], 8
mov dword [ebp - 0x68], 0x6610
mov byte [ebp - 0x6b], 2
mov dword [ebp - 0x64], 0x20
mov esi, ebx
lea edi, [ebp - 0x60]
mov eax, 0x419230
rep movsd dword es:[edi], dword [esi]
call fcn.0040ff2f
test eax, eax
mov dword [ebp - 0xc], eax
je 0x412d42
cmp dword [ebp - 4], 0
je 0x412d42
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
lea eax, [ebp + 8]
push eax
push edi
push dword [ebp - 4]
mov eax, 0x419230
call fcn.0040ff78
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, 0x419230
call fcn.0040ff18
cmp dword [ebp + 8], 0x10
jbe 0x412d42
test edi, edi
je 0x412d42
push edi
mov ecx, esi
call fcn.0040fda5
sub esi, eax
mov dword [ebp + 8], esi
mov byte [edi + esi], 0
mov eax, dword [ebp + 8]
mov byte [edi + eax + 1], 0
mov eax, dword [ebp + 8]
mov byte [edi + eax + 2], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
add edi, 0x10
mov dword [ebx + 0x2dc], eax
pop ecx
mov eax, ebx
mov dword [ebx + 0x2d8], edi
call fcn.00412a58
push dword [ebp - 8]
mov eax, 0x419230
call fcn.0040ffa2
jmp 0x412d5b
mov dword [ebx + 0x2b0], 0xffffffec
pop edi
mov eax, dword [ebp - 0xc]
pop esi
leave
ret 4