Function at 0x10025950
Capabilities:
Get session user name
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc6c
push ebx
push ebp
push esi
push edi
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0x31c]
mov byte [esp + 0x24], al
rep stosd dword es:[edi], eax
mov ecx, 0x64
lea edi, [esp + 0x18c]
rep stosd dword es:[edi], eax
mov ecx, 0x64
lea edi, [esp + 0x63c]
rep stosd dword es:[edi], eax
mov byte [esp + 0x88], al
mov byte [esp + 0x14c], al
mov byte [esp + 0x10c], al
mov byte [esp + 0x3c], al
mov byte [esp + 0x68], al
mov byte [esp + 0x5c], al
lea eax, [esp + 0x10c]
push 0x40
push eax
call fcn.100290f0
add esp, 8
test eax, eax
jne 0x100259e2
lea ecx, [esp + 0x3c]
push eax
lea edx, [esp + 0x110]
push ecx
push edx
call fcn.1002bf60
add esp, 0xc
test eax, eax
je 0x100259e2
mov byte [esp + 0x3c], 0
jmp 0x100259ea
mov al, byte [esp + 0x3c]
test al, al
jne 0x10025a1c
lea eax, [esp + 0x3c]
push 0x40
push eax
call fcn.1002c3f0
add esp, 8
test eax, eax
je 0x10025a1c
mov ecx, dword [str.NoName]
mov dx, word [0x1005d63c]
mov al, byte [0x1005d63e]
mov dword [esp + 0x3c], ecx
mov word [esp + 0x40], dx
mov byte [esp + 0x42], al
mov ecx, dword [esp + 0xc88]
push str.RNBO_SPN_LOCAL
push ecx
call dword [sym.imp.MSVCR80.dll__stricmp]
add esp, 8
test eax, eax
jne 0x10025a77
mov edx, dword [str.RNBO_SPN_LOCAL]
mov eax, dword [0x1005c820]
mov ecx, dword [0x1005c824]
mov dword [esp + 0x10c], edx
mov dx, word [0x1005c828]
mov dword [esp + 0x110], eax
mov al, byte [0x1005c82a]
mov dword [esp + 0x114], ecx
mov word [esp + 0x118], dx
mov byte [esp + 0x11a], al
lea ecx, [esp + 0x14]
lea edx, [esp + 0x88]
push ecx
push edx
mov dword [esp + 0x1c], 0x40
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
cmp eax, 1
jne 0x10025b0d
lea eax, [esp + 0x14c]
push 0x40
lea ecx, [esp + 0x8c]
push eax
push ecx
call fcn.1002cda0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x10025ae0
mov edx, dword [str.NoName]
mov ax, word [0x1005d63c]
mov cl, byte [0x1005d63e]
mov dword [esp + 0x88], edx
mov word [esp + 0x8c], ax
mov byte [esp + 0x8e], cl
jmp 0x10025b35
lea edi, [esp + 0x14c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x88]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x10025b35
mov ecx, dword [str.NoName]
mov dx, word [0x1005d63c]
mov al, byte [0x1005d63e]
mov dword [esp + 0x88], ecx
mov word [esp + 0x8c], dx
mov byte [esp + 0x8e], al
mov eax, dword [esp + 0xc84]
xor ecx, ecx
mov esi, dword [sym.imp.MSVCR80.dll_sprintf]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
xor edx, edx
and eax, 0xffff
mov dword [esp + 0x38], ecx
mov dword [esp + 0x18], edx
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x20], edx
push 0x1005d634
push ecx
mov dword [esp + 0x2c], edx
call esi
mov ebp, dword [esp + 0xc8c]
lea eax, [esp + 0x24]
mov edx, dword [ebp + 0x6c]
push edx
push 0x1005d630
push eax
call esi
mov ecx, dword [esp + 0xca4]
lea edx, [esp + 0xec]
and ecx, 0xffff
push ecx
push 0x1005d634
push edx
call esi
mov eax, dword [0x10070804]
lea ecx, [esp + 0x11c]
push eax
push 0x1005d630
push ecx
call esi
mov edx, dword [esp + 0xcc0]
lea eax, [esp + 0x11c]
and edx, 0xffff
push edx
push 0x1005d634
push eax
call esi
mov ecx, dword [ebp + 0x1a8]
lea edx, [esp + 0xb0]
push ecx
push 0x1005d630
push edx
call esi
add esp, 0x48
lea eax, [esp + 0xc8]
push 0x284
push 0x1005d634
push eax
call esi
push 0
lea ecx, [esp + 0x78]
push 0x1005d634
push ecx
call esi
push 0
lea edx, [esp + 0x78]
push 0x1005d634
push edx
call esi
add esp, 0x24
cmp word [ebp + 0x1ac], 0
jne 0x10025c51
push 0
lea eax, [esp + 0xfc]
push 0x1005d630
push eax
call esi
push 0
lea ecx, [esp + 0x84]
push 0x1005d630
push ecx
call esi
add esp, 0x18
cmp word [ebp + 0x1ac], 1
jne 0x10025c76
cmp word [ebp + 0x1ae], 0
jne 0x10025c76
push 0
lea edx, [esp + 0x78]
push 0x1005d630
push edx
call esi
add esp, 0xc
lea eax, [esp + 0xc8]
lea ecx, [esp + 0x5c]
push eax
lea edx, [esp + 0x6c]
push ecx
lea eax, [esp + 0x7c]
push edx
lea ecx, [esp + 0xf8]
push eax
lea edx, [esp + 0xe4]
push ecx
lea eax, [esp + 0x10c]
push edx
lea ecx, [esp + 0x48]
push eax
lea edx, [esp + 0x58]
push ecx
lea eax, [esp + 0x12c]
push edx
lea ecx, [esp + 0xac]
push eax
lea edx, [esp + 0x40]
push ecx
push edx
push 0xc
push 0x1005d62c
call fcn.1002cb90
mov edx, eax
add esp, 0x38
test edx, edx
jne 0x10025cef
push ebp
push 0x4a
call fcn.10025690
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc6c
ret
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x63c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, ebx
mov ebx, dword [sym.imp.MSVCR80.dll_free]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebx
lea ecx, [esp + 0x28]
lea edx, [esp + 0x640]
push ecx
push edx
push str.findFirstUnitEx
push 3
push 0x1005d528
call fcn.1002cb90
mov edx, eax
add esp, 0x18
test edx, edx
jne 0x10025d54
pop edi
pop esi
pop ebp
mov ax, 0x4a
pop ebx
add esp, 0xc6c
ret
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x18c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebx
lea ecx, [esp + 0x190]
push ecx
call fcn.1002cc70
mov edx, eax
add esp, 8
test edx, edx
jne 0x10025da8
pop edi
pop esi
pop ebp
mov ax, 0x4a
pop ebx
add esp, 0xc6c
ret
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x18c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebx
lea ecx, [esp + 0x320]
lea edx, [esp + 0x190]
push ecx
push ebp
push edx
call fcn.1002a070
add esp, 0x10
test ax, ax
je 0x10025e0a
push ebp
push eax
call fcn.100255c0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc6c
ret
lea eax, [esp + 0x31c]
push eax
call fcn.1002c960
mov esi, eax
add esp, 4
test esi, esi
jne 0x10025e2f
pop edi
pop esi
pop ebp
mov ax, 0x42
pop ebx
add esp, 0xc6c
ret
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x24], ecx
lea edi, [esp + 0x4ac]
mov dword [esp + 0x28], ecx
lea edx, [esp + 0x31c]
mov dword [esp + 0x2c], ecx
mov ecx, 0x64
rep stosd dword es:[edi], eax
lea eax, [esp + 0x4ac]
push edx
lea ecx, [esp + 0x7d0]
push eax
push ecx
push esi
push 3
push 0x1005d528
call fcn.1002c7c0
push esi
mov edi, eax
call ebx
add esp, 0x1c
test di, di
je 0x10025e8e
pop edi
pop esi
pop ebp
mov ax, 0x42
pop ebx
add esp, 0xc6c
ret
xor ebx, ebx
mov esi, str.error
lea eax, [esp + 0x7cc]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x10025ec0
test cl, cl
je 0x10025ebc
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x10025ec0
add eax, 2
add esi, 2
test cl, cl
jne 0x10025e9c
xor eax, eax
jmp 0x10025ec5
sbb eax, eax
sbb eax, 0xffffffff
mov edi, dword [sym.imp.MSVCR80.dll_atoi]
test eax, eax
jne 0x10025eee
lea eax, [esp + 0x4ac]
push eax
call edi
mov ebx, eax
add esp, 4
cmp bx, 0x46
je 0x10025eee
cmp bx, 0x50
jne 0x10025fe3
lea ecx, [esp + 0xe0]
lea edx, [esp + 0xaec]
push ecx
lea eax, [esp + 0x960]
push edx
lea ecx, [esp + 0x324]
push eax
push ecx
push 3
push 0x1005d62c
call fcn.1002c7c0
add esp, 0x18
test eax, eax
je 0x10025f30
pop edi
pop esi
pop ebp
mov ax, 0x42
pop ebx
add esp, 0xc6c
ret
lea edx, [esp + 0x95c]
push edx
call edi
mov word [ebp + 0x44], ax
mov ax, word [esp + 0xc88]
lea ecx, [esp + 0xe4]
mov word [ebp + 0x42], ax
push ecx
call edi
mov word [ebp + 0x1a4], ax
mov ax, word [ebp + 0x74]
add esp, 8
cmp ax, 1
je 0x10025f6e
cmp ax, 2
jne 0x10025f7f
mov edx, dword [esp + 0xc88]
push edx
push ebp
call fcn.100254d0
add esp, 8
test bx, bx
je 0x10025f90
cmp bx, 0x46
je 0x10025f90
cmp bx, 0x50
jne 0x10025fe3
movsx esi, word [ebp + 0x5a]
lea eax, [esp + 0xaec]
inc esi
push eax
mov word [ebp + 0x5a], si
call edi
add esp, 4
mov word [ebp + esi*2 + 0x46], ax
test bx, bx
jne 0x10025fd9
mov esi, dword [ebp + 0x5c]
lea ecx, [ebp + 0x64]
inc esi
push ecx
mov dword [ebp + 0x5c], esi
call dword [sym.imp.MSVCR80.dll__time32]
add esp, 4
mov dword [ebp + 0x68], 0x78
mov ax, bx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc6c
ret
cmp bx, 0x50
mov ax, 0x46
je 0x10025fe6
mov ax, bx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc6c
ret