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

Disassembly:
sub esp, 0x664
mov eax, dword [0x342226fc]
xor eax, esp
mov dword [esp + 0x660], eax
push ebx
mov ebx, dword [esp + 0x66c]
push ebp
mov ebp, dword [esp + 0x678]
mov eax, ecx
xor ecx, ecx
push esi
mov esi, dword [esp + 0x678]
push edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x34], ecx
mov ecx, 0xa
lea edi, [esp + 0x40]
mov dword [esp + 0x2c], esi
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x30]
push 0x3426e110
mov dword [esp + 0x18], eax
call fcn.341fc487
mov esi, eax
cmp esi, 0xffffffff
jne 0x342e7ef3
push 1
push 0xfffffa1d
mov ecx, ebp
call fcn.341f7675
jmp 0x342e8166
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 0x30]
push esi
mov ecx, edi
call fcn.341fc710
test al, al
je 0x342e7ee0
mov esi, dword [edi + esi*4 + 0xb0]
xor edi, edi
cmp esi, edi
mov dword [esp + 0x24], esi
je 0x342e7ee0
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
cmp al, 0xb
jne 0x342e7ee0
cmp ebx, edi
je 0x342e825e
push edi
push edi
push edi
mov eax, 0xff
push ebx
lea ecx, [esp + 0x20]
push ecx
mov word [esp + 0x47c], di
mov word [esp + 0x7c], di
mov word [esp + 0x27c], di
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x3c], 0x103
call dword [sym.imp.MSO.dll_Ordinal_2814]
test eax, eax
jge 0x342e7f7c
push 1
push 0xfffffc15
mov ecx, ebp
call fcn.341f7675
jmp 0x342e8166
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0xd8]
call eax
cmp word [ebx], di
je 0x342e8166
cmp eax, edi
je 0x342e7fa1
cmp eax, 1
jne 0x342e8166
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 1
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x270]
push edx
push 0xc0
push eax
mov eax, dword [ecx + 0x30]
call eax
test eax, eax
jl 0x342e7f69
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 1
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x70]
push edx
push 0x80
push eax
mov eax, dword [ecx + 0x30]
call eax
test eax, eax
jl 0x342e7f69
lea ecx, [esp + 0x18]
push ecx
push 0x100
lea edx, [esp + 0x70]
push edx
call fcn.342f2f63
test eax, eax
jl 0x342e7f69
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x30]
add dword [esp + 0x18], 1
mov edx, dword [ecx + 0x28]
mov eax, dword [edx + 8]
push ebx
push eax
lea eax, [esp + 0x270]
push eax
call dword [sym.imp.MSO.dll_Ordinal_8615]
test eax, eax
jge 0x342e803b
push 1
push 0xfffffbf8
mov ecx, ebp
call fcn.341f7675
jmp 0x342e8166
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xb4]
push eax
call edx
test eax, eax
jne 0x342e80bd
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 4
lea edx, [esp + 0x2c]
push edx
lea edx, [esp + 0x470]
push edx
push eax
mov eax, dword [ecx + 0xe8]
call eax
test eax, eax
jge 0x342e8083
push 1
push 0xfffff8ed
mov ecx, ebp
call fcn.341f7675
jmp 0x342e8166
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x30]
mov eax, dword [edx + 0x28]
mov eax, dword [eax + 8]
push ebx
push eax
lea edi, [esp + 0x470]
mov ecx, edi
push ecx
push 0
push 0
call dword [sym.imp.MSO.dll_Ordinal_8617]
test eax, eax
jge 0x342e80bf
push 1
push 0xfffffbf8
mov ecx, ebp
call fcn.341f7675
jmp 0x342e8166
mov edi, ebx
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push edi
call dword [sym.imp.kernel32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x1c], esi
jne 0x342e80f2
push ebp
call fcn.341f3190
mov ecx, eax
call fcn.342436f3
jmp 0x342e8166
lea edx, [esp + 0x38]
push edx
push esi
call dword [sym.imp.kernel32.dll_GetFileSizeEx]
test eax, eax
je 0x342e8247
cmp dword [esp + 0x3c], 0
jne 0x342e8247
mov edi, dword [esp + 0x38]
push ebp
push edi
call fcn.341f3190
mov ecx, eax
call fcn.341f36e6
mov ebx, eax
mov eax, dword [ebp]
test al, 8
je 0x342e8191
test al, 1
jne 0x342e814e
cmp dword [ebp + 4], 0xfffffc0d
jne 0x342e814e
mov ecx, ebp
call fcn.341f4f4b
push 1
push 0xfffff107
mov ecx, ebp
call fcn.341f7675
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
test ebx, ebx
je 0x342e8166
push ebx
call fcn.341f3190
mov ecx, eax
call fcn.341f5b4d
mov eax, dword [esp + 0x10]
test eax, eax
pop edi
pop esi
pop ebp
pop ebx
je 0x342e817a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0x660]
xor ecx, esp
call fcn.341f1b18
add esp, 0x664
ret 0xc
push 0
lea eax, [esp + 0x34]
push eax
push edi
push ebx
push esi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x342e823b
cmp dword [esp + 0x30], edi
jne 0x342e823b
mov ecx, dword [esp + 0x24]
push ebp
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x48]
push eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], edi
mov dword [esp + 0x5c], 0
mov byte [esp + 0x6c], 0
mov byte [esp + 0x71], 0
mov dword [esp + 0x60], ecx
call fcn.342e7b77
test byte [ebp], 8
jne 0x342e814e
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
mov ecx, 0xa
lea edi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
lea eax, [edx + edx]
lea ecx, [esp + 0x268]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov edx, dword [edx + 0x20]
mov dword [esp + 0x48], eax
push ebp
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x58], 0
mov byte [esp + 0x68], 1
call edx
mov esi, dword [esp + 0x1c]
jmp 0x342e814e
push 1
push 0xffffb161
jmp 0x342e8147
push 1
push 0xfffff107
mov ecx, ebp
call fcn.341f7675
mov ebx, dword [esp + 0x34]
jmp 0x342e814e
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x50], edi
mov byte [esp + 0x60], 1
mov byte [esp + 0x65], 0
mov dword [esp + 0x54], esi
mov eax, dword [esi]
mov edx, dword [eax + 0x20]
push ebp
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
call edx
jmp 0x342e8166