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

Disassembly:
sub esp, 0x664
mov eax, dword [0x34234fcc]
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 + 0x54], ecx
mov ecx, 0xa
lea edi, [esp + 0x24]
mov dword [esp + 0x50], esi
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x34]
push 0x3425cef4
mov dword [esp + 0x18], eax
call fcn.341febda
mov esi, eax
cmp esi, 0xffffffff
je 0x342aa2c6
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 0x34]
push esi
mov ecx, edi
call fcn.341fee81
test al, al
je 0x342aa2c6
mov esi, dword [edi + esi*4 + 0xf4]
xor edi, edi
mov dword [esp + 0x4c], esi
cmp esi, edi
je 0x342aa2c6
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
cmp al, 0xb
jne 0x342aa2c6
cmp ebx, edi
je 0x342aa583
push edi
push edi
xor ecx, ecx
xor eax, eax
push edi
mov word [esp + 0x474], cx
mov word [esp + 0x74], ax
mov eax, 0xff
push ebx
lea ecx, [esp + 0x20]
xor edx, edx
push ecx
mov word [esp + 0x27c], dx
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x70], 0x103
call dword [sym.imp.MSO.dll_Ordinal_3826]
test eax, eax
jl 0x342aa2d9
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0xdc]
call eax
cmp word [ebx], di
je 0x3427227c
cmp eax, edi
je 0x342aa2ec
cmp eax, 1
je 0x342aa2ec
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
test eax, eax
je 0x34272290
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0x660]
xor ecx, esp
call fcn.341f1dd1
add esp, 0x664
ret 0xc
push 1
push 0xfffffa1d
mov ecx, ebp
call fcn.341f8dac
jmp 0x3427227c
push 1
push 0xfffffc15
mov ecx, ebp
call fcn.341f8dac
jmp 0x3427227c
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 1
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x70]
push edx
push 0xc0
push eax
mov eax, dword [ecx + 0x30]
call eax
test eax, eax
jl 0x342aa2d9
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 1
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x270]
push edx
push 0x80
push eax
mov eax, dword [ecx + 0x30]
call eax
test eax, eax
jl 0x342aa2d9
lea ecx, [esp + 0x18]
push ecx
push 0x100
lea edx, [esp + 0x270]
push edx
call fcn.342723fd
test eax, eax
jl 0x342aa2d9
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x34]
inc dword [esp + 0x18]
mov edx, dword [ecx + 0x28]
mov eax, dword [edx + 8]
push ebx
push eax
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.MSO.dll_Ordinal_7207]
test eax, eax
jge 0x342aa381
push 1
push 0xfffffbf8
mov ecx, ebp
call fcn.341f8dac
jmp 0x3427227c
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xb8]
push eax
call edx
test eax, eax
jne 0x342aa403
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 4
lea edx, [esp + 0x60]
push edx
lea edx, [esp + 0x470]
push edx
push eax
mov eax, dword [ecx + 0xec]
call eax
test eax, eax
jge 0x342aa3c9
push 1
push 0xfffff8ed
mov ecx, ebp
call fcn.341f8dac
jmp 0x3427227c
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x34]
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_2490]
test eax, eax
jge 0x342aa405
push 1
push 0xfffffbf8
mov ecx, ebp
call fcn.341f8dac
jmp 0x3427227c
mov edi, ebx
push 0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push edi
call dword [sym.imp.MSO.dll_Ordinal_2191]
mov esi, eax
mov dword [esp + 0x1c], esi
cmp esi, 0xffffffff
jne 0x342aa43d
push ebp
call fcn.341f37b8
mov ecx, eax
call fcn.341f8c56
jmp 0x3427227c
lea edx, [esp + 0x60]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x342aa56c
cmp dword [esp + 0x64], 0
jne 0x342aa56c
mov edi, dword [esp + 0x60]
push ebp
push edi
call fcn.341f37b8
mov ecx, eax
call fcn.341f3e3e
mov ebx, eax
mov eax, dword [ebp]
test al, 8
je 0x342aa4ba
test al, 1
jne 0x342aa499
cmp dword [ebp + 4], 0xfffffc0d
jne 0x342aa499
mov ecx, ebp
call fcn.341f5f2f
push 1
push 0xfffff107
mov ecx, ebp
call fcn.341f8dac
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x3427227c
push ebx
call fcn.341f37b8
mov ecx, eax
call fcn.341f6d4a
jmp 0x3427227c
push 0
lea eax, [esp + 0x5c]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x342aa560
cmp dword [esp + 0x58], edi
jne 0x342aa560
mov ecx, dword [esp + 0x4c]
push ebp
lea edx, [esp + 0x26c]
push edx
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], edi
mov dword [esp + 0x40], 0
mov byte [esp + 0x50], 0
mov byte [esp + 0x55], 0
mov dword [esp + 0x44], ecx
call fcn.34271da7
test byte [ebp], 8
jne 0x342aa499
mov esi, dword [esp + 0x50]
mov edx, dword [esp + 0x20]
mov ecx, 0xa
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
lea eax, [edx + edx]
lea ecx, [esp + 0x68]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov edx, dword [edx + 0x30]
mov dword [esp + 0x2c], eax
push ebp
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x3c], 0
mov byte [esp + 0x4c], 1
call edx
mov esi, dword [esp + 0x1c]
jmp 0x342aa499
push 1
push 0xffffb161
jmp 0x342aa492
push 1
push 0xfffff107
mov ecx, ebp
call fcn.341f8dac
mov ebx, dword [esp + 0x54]
jmp 0x342aa499
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], edi
mov byte [esp + 0x44], 1
mov byte [esp + 0x49], 0
mov dword [esp + 0x38], esi
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
push ebp
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call edx
jmp 0x3427227c