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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48ac2c
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4b0040]
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]
xorps xmm0, xmm0
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], vtable.Pbg::CPbgFile.0
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x1c], 0
mov ecx, 0x72
mov dword [ebp - 4], 0
mov word [ebp - 0x18], cx
lea ecx, [ebp - 0x18]
push ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.00422560
test eax, eax
je 0x4213da
mov eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
jne 0x421163
xor esi, esi
jmp 0x42116e
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.004355aa
add esp, 4
mov edi, eax
cmp dword [ebp - 0x1c], 0x80000000
mov dword [ebp - 0x34], edi
jne 0x4213cf
push 0
lea eax, [ebp - 0x28]
push eax
push esi
push edi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4213cf
mov ecx, 0x4b3170
call fcn.00421650
cmp dword [edi], 0x6468544d
je 0x4211c6
push 1
push edi
xor esi, esi
call fcn.00435574
add esp, 8
jmp 0x4213dc
movzx ecx, word [edi + 8]
mov edx, 0x18
mov eax, ecx
mov byte [ebp - 0x17], cl
shr eax, 8
mov byte [ebp - 0x18], al
movzx eax, word [ebp - 0x18]
mov dword [0x4b3178], eax
movzx ecx, word [edi + 0xa]
mov eax, ecx
mov byte [ebp - 0x17], cl
shr eax, 8
mov byte [ebp - 0x18], al
movzx ebx, word [ebp - 0x18]
mov dword [0x4b317c], ebx
movzx ecx, word [edi + 0xc]
mov eax, ecx
mov byte [ebp - 0x17], cl
shr eax, 8
xor ecx, ecx
mov byte [ebp - 0x18], al
movzx eax, word [ebp - 0x18]
mov dword [0x4b3180], eax
mov eax, ebx
mul edx
mov dword [ebp - 0x30], ebx
mov dword [0x4b3184], 0xf4240
seto cl
mov dword [ebp - 0x2c], ebx
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.004355aa
add esp, 4
mov dword [ebp - 0x18], eax
push 0x4210c0
push 0x4210a0
push ebx
lea esi, [eax + 4]
mov byte [ebp - 4], 1
push 0x18
push esi
mov dword [eax], ebx
call fcn.00488af8
mov byte [ebp - 4], 0
mov dword [0x4b6210], esi
test esi, esi
jne 0x421283
push 1
push edi
call fcn.00435574
add esp, 8
jmp 0x4213dc
mov ecx, dword [edi + 4]
mov eax, ecx
shr eax, 0x18
mov byte [ebp - 0x18], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 0x17], al
mov eax, ecx
shr eax, 8
mov byte [ebp - 0x16], al
mov byte [ebp - 0x15], cl
mov eax, dword [ebp - 0x18]
add eax, 8
add edi, eax
test ebx, ebx
je 0x4213bb
mov dword [ebp - 0x2c], 0
mov ecx, dword [edi + 4]
mov eax, ecx
shr eax, 0x18
add edi, 8
mov byte [ebp - 0x18], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 0x17], al
mov eax, ecx
shr eax, 8
mov byte [ebp - 0x16], al
mov byte [ebp - 0x15], cl
mov ebx, dword [ebp - 0x18]
push ebx
call fcn.004355aa
add esp, 4
mov esi, eax
push ebx
push edi
push esi
call fcn.0045ea40
mov ecx, dword [0x4b6210]
add esp, 0xc
mov edx, dword [ebp - 0x2c]
mov dword [edx + ecx + 0xc], esi
mov ecx, dword [0x4b6210]
mov dword [edx + ecx + 0x10], esi
mov eax, dword [0x4b6210]
mov dword [edx + eax], ebx
mov eax, dword [0x4b6210]
mov dword [edx + eax + 8], 0
mov eax, dword [0x4b6210]
mov byte [edx + eax + 0x15], 0
cmp byte [0x4b623a], 0
jne 0x4213a9
mov esi, edi
test ebx, ebx
je 0x4213a9
cmp byte [esi], 0xff
jne 0x42134d
mov al, byte [esi + 1]
cmp al, 3
je 0x421358
cmp al, 0x2f
jne 0x42134d
cmp byte [esi + 2], 0
je 0x4213a9
inc esi
mov eax, esi
sub eax, edi
cmp eax, ebx
jb 0x421337
jmp 0x4213a9
movzx eax, byte [esi + 2]
push eax
lea eax, [esi + 3]
push eax
push 0x4b623a
call fcn.0045ea40
movzx eax, byte [esi + 2]
mov ecx, 0x4b623a
add esp, 0xc
mov byte [eax + 0x4b623a], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x421381
sub ecx, edx
lea eax, [ecx - 1]
test eax, eax
jle 0x4213a6
cmp byte [eax + 0x4b623a], 0x20
jne 0x4213a6
mov byte [eax + 0x4b623a], 0
dec eax
test eax, eax
jg 0x421391
mov edx, dword [ebp - 0x2c]
add edx, 0x18
add edi, ebx
sub dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], edx
jne 0x4212b8
mov edi, dword [ebp - 0x34]
mov esi, 1
push esi
push edi
call fcn.00435574
add esp, 8
jmp 0x4213dc
push 1
push edi
call fcn.00435574
add esp, 8
xor esi, esi
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], vtable.Pbg::CPbgFile.0
cmp eax, 0xffffffff
je 0x4213f2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
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.00435413
mov esp, ebp
pop ebp
ret 4