Function at 0x7ce0bb49
Capabilities:
Get file size
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x14], ebx
cmp dword [esi + 0x1c], ebx
je 0x7ce0bb71
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov eax, dword [eax]
add eax, dword [esi + 0x1c]
jmp 0x7ce0bb73
xor eax, eax
mov edi, 0x200
test dword [eax + 0xc], edi
jne 0x7ce0beb0
cmp dword [esi + 0x1c], ebx
je 0x7ce0bb99
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov eax, dword [eax]
add eax, dword [esi + 0x1c]
jmp 0x7ce0bb9b
xor eax, eax
test byte [eax + 0xd], 8
jne 0x7ce0beb0
lea eax, [ebp - 4]
push eax
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x7ce0bbd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x7ce0bbd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.7ce3959e
mov edi, eax
jmp 0x7ce0beb5
cmp dword [ebp - 4], ebx
jbe 0x7ce0bbe6
mov edi, 0x80030111
jmp 0x7ce0beb5
cmp dword [esi + 0x1c], ebx
je 0x7ce0bbfe
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov eax, dword [eax]
add eax, dword [esi + 0x1c]
jmp 0x7ce0bc00
xor eax, eax
test byte [eax + 8], 0x80
jne 0x7ce0bc25
cmp dword [esi + 0x1c], ebx
je 0x7ce0bc1e
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov eax, dword [eax]
add eax, dword [esi + 0x1c]
jmp 0x7ce0bc20
xor eax, eax
test dword [eax + 8], edi
jne 0x7ce0bc35
push dword [esi + 0x24]
call fcn.7ce0bb15
test eax, eax
jne 0x7ce0beb0
cmp dword [esi + 0x1c], ebx
je 0x7ce0bc4d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov eax, dword [eax]
add eax, dword [esi + 0x1c]
jmp 0x7ce0bc4f
xor eax, eax
test byte [eax + 8], 0x80
je 0x7ce0bca7
cmp dword [ebp - 8], ebx
push 2
mov dword [ebp - 0xc], 4
pop edi
jne 0x7ce0bc90
mov ecx, esi
call fcn.7ce08c0b
test al, 4
jne 0x7ce0bc7e
mov ecx, esi
call fcn.7ce08c0b
test al, 0xc0
je 0x7ce0bea5
mov ecx, esi
call fcn.7ce0bef6
test eax, eax
jl 0x7ce0bc90
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 8]
cmp eax, 0x40000
jae 0x7ce0bca3
mov dword [ebp - 0x10], 0x80000
jmp 0x7ce0bcb7
add eax, eax
jmp 0x7ce0bcb4
mov eax, dword [ebp - 8]
push 4
mov dword [ebp - 0xc], 2
pop edi
mov dword [ebp - 0x10], eax
cmp dword [esi + 0x1c], ebx
je 0x7ce0bccf
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov eax, dword [eax]
add eax, dword [esi + 0x1c]
jmp 0x7ce0bcd1
xor eax, eax
lea ecx, [eax + 0x30]
mov ax, word [eax + 0x30]
neg ax
sbb eax, eax
and eax, ecx
cmp eax, ebx
jne 0x7ce0be27
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateLocallyUniqueId]
push dword [ebp - 0x1c]
lea eax, [ebp - 0x7c]
push dword [ebp - 0x18]
push 0x7cd81e20
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
cmp dword [esi + 0x1c], ebx
je 0x7ce0bd21
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov eax, dword [eax]
add eax, dword [esi + 0x1c]
jmp 0x7ce0bd23
xor eax, eax
lea ecx, [ebp - 0x7c]
test ecx, ecx
je 0x7ce0bd3a
lea ecx, [ebp - 0x7c]
add eax, 0x30
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x7ce0bd3e
mov word [eax + 0x30], bx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x34]
shr eax, 1
cmp dword [ebp - 8], eax
ja 0x7ce0bea5
cmp dword [ebp - 0x20], 0x20000000
jb 0x7ce0bea5
cmp dword [esi + 0x1c], ebx
mov edx, dword [esi + 0x24]
je 0x7ce0bd7e
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov eax, dword [eax]
add eax, dword [esi + 0x1c]
jmp 0x7ce0bd80
xor eax, eax
lea ecx, [eax + 0x30]
mov ax, word [eax + 0x30]
neg ax
sbb eax, eax
and eax, ecx
push eax
push ebx
push ebx
push dword [ebp - 0xc]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp dword [ebp - 8], ebx
mov dword [esi + 0x58], eax
je 0x7ce0be85
lea eax, [ebp - 4]
push eax
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x7ce0bdeb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x7ce0bdeb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.7ce3959e
mov edi, eax
mov eax, dword [esi + 0x58]
cmp eax, ebx
je 0x7ce0beb5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x7ce0beb5
cmp dword [esi + 0x1c], ebx
je 0x7ce0be03
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov eax, dword [eax]
add eax, dword [esi + 0x1c]
jmp 0x7ce0be05
xor eax, eax
mov dword [eax + 0x24], edi
cmp dword [esi + 0x1c], ebx
je 0x7ce0be20
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov eax, dword [eax]
add eax, dword [esi + 0x1c]
jmp 0x7ce0be22
xor eax, eax
mov dword [eax + 0x28], edi
jmp 0x7ce0be85
cmp dword [esi + 0x1c], ebx
je 0x7ce0be3f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov eax, dword [eax]
add eax, dword [esi + 0x1c]
jmp 0x7ce0be41
xor eax, eax
test byte [eax + 0x2c], 1
jne 0x7ce0be51
mov eax, 0x80004005
jmp 0x7ce0beef
cmp dword [esi + 0x1c], ebx
je 0x7ce0be69
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov eax, dword [eax]
add eax, dword [esi + 0x1c]
jmp 0x7ce0be6b
xor eax, eax
lea ecx, [eax + 0x30]
mov ax, word [eax + 0x30]
neg ax
sbb eax, eax
and eax, ecx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [esi + 0x58], eax
cmp dword [esi + 0x58], ebx
je 0x7ce0bea5
push dword [ebp + 8]
mov ecx, esi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.7ce0bf3c
test eax, eax
jge 0x7ce0beac
mov ecx, esi
call fcn.7ce0cfbf
mov edi, 0x8007000e
jmp 0x7ce0beb5
xor eax, eax
jmp 0x7ce0beef
mov edi, 0x80030001
cmp dword [esi + 0x1c], ebx
je 0x7ce0becd
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov eax, dword [eax]
add eax, dword [esi + 0x1c]
jmp 0x7ce0becf
xor eax, eax
and dword [eax + 0x2c], 0xfffffffe
cmp dword [ebp - 0x14], ebx
je 0x7ce0beed
push ebx
push ebx
push ebx
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4