Function at 0x5b82e0e0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5b89602c]
mov edx, 0x5b89602c
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
cmp eax, edx
je 0x5b82e120
test byte [eax + 0x1c], 4
je 0x5b82e120
push ecx
push esi
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.5b82c6ee
mov eax, dword [0x5b89602c]
mov edx, 0x5b89602c
mov ecx, dword [ebp + 0xc]
cmp esi, 0xffffffff
je 0x5b82e3ec
test esi, esi
je 0x5b82e3ec
test ecx, ecx
je 0x5b82e3d7
cmp dword [ecx], 0x10
jb 0x5b82e3d7
and dword [esp + 0x14], 0
mov edx, esi
push ecx
lea ecx, [esp + 0x18]
call fcn.5b867ecf
mov edi, dword [esp + 0x14]
mov ebx, eax
test ebx, ebx
jns 0x5b82e188
mov eax, dword [0x5b89602c]
cmp eax, 0x5b89602c
je 0x5b82e3c8
test byte [eax + 0x1c], 1
je 0x5b82e3c8
push ebx
lfence
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x3b
jmp 0x5b82e215
lfence
mov eax, dword [0x5b89602c]
cmp eax, 0x5b89602c
je 0x5b82e1b1
test byte [eax + 0x1c], 4
je 0x5b82e1b1
push edi
push dword [eax + 0x14]
mov edx, 0x5b80bb44
push dword [eax + 0x10]
push 0x3c
pop ecx
call fcn.5b81b790
and dword [esp + 0x10], 0
xor eax, eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x5b82e1d9
call fcn.5b87185e
mov ecx, dword [esp + 0x14]
mov ebx, eax
jmp 0x5b82e1eb
mov eax, dword [esp + 0x18]
xor ebx, ebx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
test ebx, ebx
jns 0x5b82e225
mov eax, dword [0x5b89602c]
cmp eax, 0x5b89602c
je 0x5b82e3c8
test byte [eax + 0x1c], 1
je 0x5b82e3c8
push ebx
lfence
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x3d
mov edx, 0x5b80bb44
pop ecx
call fcn.5b81ae33
jmp 0x5b82e3c8
mov eax, dword [0x5b89602c]
mov ebx, dword [esp + 0x10]
cmp eax, 0x5b89602c
je 0x5b82e255
test byte [eax + 0x1c], 4
je 0x5b82e255
push ecx
push ebx
push dword [eax + 0x14]
mov edx, 0x5b80bb44
push dword [eax + 0x10]
push 0x3e
pop ecx
call fcn.5b82c69a
mov eax, dword [0x5b89602c]
mov ecx, dword [esp + 0x14]
xor edx, edx
cmp ecx, edx
ja 0x5b82e3a8
cmp ebx, 0xffffffff
ja 0x5b82e3a8
push edx
push edx
push ecx
lfence
push ebx
mov dword [esp + 0x28], edx
lea ecx, [esp + 0x28]
push 2
mov edx, esi
call fcn.5b8701c0
mov esi, dword [esp + 0x18]
mov ebx, eax
test ebx, ebx
jns 0x5b82e2b6
mov eax, dword [0x5b89602c]
cmp eax, 0x5b89602c
je 0x5b82e39b
test byte [eax + 0x1c], 1
je 0x5b82e39b
push ebx
lfence
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x40
jmp 0x5b82e2fa
push dword [esp + 0x10]
and dword [esp + 0x1c], 0
mov edx, esi
push ecx
push ecx
push 4
lea ecx, [esp + 0x28]
call fcn.5b87027c
mov ebx, eax
test ebx, ebx
jns 0x5b82e30a
mov eax, dword [0x5b89602c]
cmp eax, 0x5b89602c
je 0x5b82e39b
test byte [eax + 0x1c], 1
je 0x5b82e39b
push ebx
lfence
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x41
mov edx, 0x5b80bb44
pop ecx
call fcn.5b81ae33
jmp 0x5b82e39b
mov eax, dword [0x5b89602c]
cmp eax, 0x5b89602c
je 0x5b82e32f
test byte [eax + 0x1c], 4
je 0x5b82e32f
push dword [eax + 0x14]
mov edx, 0x5b80bb44
push dword [eax + 0x10]
push 0x42
pop ecx
call fcn.5b81ae17
mov eax, dword [ebp + 0xc]
mov ecx, edi
push eax
or dword [eax + 4], 0xffffffff
and dword [eax + 8], 0
and dword [eax + 0xc], 0
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x20]
mov edx, eax
push dword [esp + 0x18]
mov dword [esp + 0x24], eax
call fcn.5b838ef1
mov ebx, eax
test ebx, ebx
jns 0x5b82e38a
mov eax, dword [0x5b89602c]
cmp eax, 0x5b89602c
je 0x5b82e38c
test byte [eax + 0x1c], 1
je 0x5b82e38c
push ebx
lfence
push dword [eax + 0x14]
mov edx, 0x5b80bb44
push dword [eax + 0x10]
push 0x43
pop ecx
call fcn.5b81ae33
jmp 0x5b82e38c
xor ebx, ebx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x5b82e39b
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test esi, esi
je 0x5b82e3c8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x5b82e3c8
cmp eax, 0x5b89602c
je 0x5b82e3c3
test byte [eax + 0x1c], 2
je 0x5b82e3c3
push ecx
push ecx
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.5b82c6bc
mov ebx, 0x800700df
test edi, edi
je 0x5b82e3d3
push edi
call fcn.5b884351
pop ecx
mov eax, ebx
jmp 0x5b82e40f
cmp eax, edx
je 0x5b82e40a
test byte [eax + 0x1c], 1
je 0x5b82e40a
push ecx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x3a
jmp 0x5b82e3ff
cmp eax, edx
je 0x5b82e40a
test byte [eax + 0x1c], 1
je 0x5b82e40a
push esi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x39
mov edx, 0x5b80bb44
pop ecx
call fcn.5b81ae33
mov eax, 0x80070057
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8