Function at 0x4ba7f0
Capabilities:
Get file size
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
mov eax, dword [0x5322a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x1fe
mov dword [ebp - 0x4a4], edx
xor edi, edi
mov dword [ebp - 0x4a0], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4b4], ecx
lea edx, [ebp - 0x48e]
xor ecx, ecx
push edi
push edx
mov dword [ebp - 0x4b0], eax
mov dword [ebp - 0x4a8], pe_nt_image_headers32
mov word [ebp - 0x490], cx
call fcn.004e7d90
add esp, 0xc
lea esi, [ebp - 0x4a8]
lea ebx, [ebp - 0x490]
call fcn.004a9de0
push 0x7e
lea ecx, [ebp - 0x86]
xor eax, eax
push edi
push ecx
mov dword [ebp - 0x498], edi
mov word [ebp - 0x88], ax
call fcn.004e7d90
mov esi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
add esp, 0xc
push edi
lea edx, [ebp - 0x494]
push edx
push edi
lea eax, [ebp - 0x498]
push eax
push edi
mov ecx, ebx
push ecx
push edi
mov dword [ebp - 0x494], edi
call esi
mov edx, dword [ebp - 0x498]
push edx
call fcn.004e4240
mov edi, eax
mov eax, dword [ebp - 0x498]
add esp, 4
push eax
push 0
push edi
call fcn.004e7d90
mov eax, dword [ebp - 0x494]
xor ecx, ecx
add esp, 0xc
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e4240
mov ebx, eax
mov eax, dword [ebp - 0x494]
add esp, 4
push eax
push 0
push ebx
mov dword [ebp - 0x49c], ebx
call fcn.004e7d90
add esp, 0xc
lea ecx, [ebp - 0x4b8]
push ecx
lea edx, [ebp - 0x494]
push edx
push ebx
lea eax, [ebp - 0x498]
push eax
push edi
lea ecx, [ebp - 0x490]
push ecx
push 0
call esi
cmp eax, 1
jne 0x4baada
push edi
call dword [sym.imp.ADVAPI32.dll_GetSidIdentifierAuthority]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
movzx ebx, byte [eax]
push 1
push 0x51d608
lea edx, [ebp - 0x88]
mov dword [ebp - 0x4ac], ebx
call fcn.00471490
lea eax, [ebp - 0x88]
add esp, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ba961
movzx ecx, byte [esi + 3]
sub eax, edx
movzx edx, byte [esi + 2]
shl edx, 8
add edx, ecx
movzx ecx, byte [esi + 4]
shl edx, 8
add edx, ecx
movzx ecx, byte [esi + 5]
shl edx, 8
add edx, ecx
push edx
sar eax, 1
push 0x51d618
lea edx, [ebp + eax*2 - 0x88]
call fcn.00471490
add esp, 8
xor esi, esi
test ebx, ebx
je 0x4ba9ec
lea eax, [ebp - 0x88]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ba9b3
sub eax, edx
push esi
sar eax, 1
push edi
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov edx, dword [eax]
push edx
push str.__lu
lea edx, [ebp + ebx*2 - 0x88]
call fcn.00471490
inc esi
add esp, 8
cmp esi, dword [ebp - 0x4ac]
jb 0x4ba9aa
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x28e]
push ecx
mov word [ebp - 0x290], ax
call fcn.004e7d90
mov esi, dword [ebp - 0x4b4]
add esp, 0xc
push 0x3b
push esi
call fcn.004e4991
mov ecx, dword [ebp - 0x4a0]
xor edx, edx
mov word [eax], dx
mov edx, dword [ebp - 0x4a4]
push esi
lea eax, [ebp - 0x88]
push eax
movzx eax, word [edx]
push ecx
push eax
push str._c:_s_s_s
lea edx, [ebp - 0x290]
call fcn.00471490
add esp, 0x1c
push 0
push 0x80
push 3
push 0
push 1
push closesocket
lea ecx, [ebp - 0x290]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4baacc
mov edx, dword [ebp - 0x4b0]
lea eax, [ebp - 0x290]
mov ecx, eax
sub edx, ecx
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4baa80
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov ebx, eax
call fcn.004e424b
mov edx, dword [ebp - 0x49c]
add esp, 4
push edx
call fcn.004e424b
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e3946
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x49c]
push edi
call fcn.004e424b
add esp, 4
push ebx
call fcn.004e424b
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004e3946
mov esp, ebp
pop ebp
ret