Function at 0x10052de0
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x11ac]
mov eax, 0x11ac
call fcn.10126240
push 0xfffffffffffffffe
push 0x1016e9f0
push 0x10118480
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x1017455c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x11a8], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
mov dword [ebp - 0x30], esi
xor edi, edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x2c], edi
mov byte [ebp + 0x1104], 0
push 0xa3
push edi
lea eax, [ebp + 0x1105]
push eax
call fcn.10116880
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x1c], edi
push 0x10148b5c
push esi
call fcn.1010ebfe
add esp, 0x14
mov ebx, eax
mov dword [ebp - 0x2c], ebx
cmp ebx, edi
jne 0x10052ece
push esi
call sym.EncDec.dll_IsFileOnNetworkDrive
test eax, eax
je 0x10052eae
push edi
call sym.EncDec.dll_IsSystemUser
test eax, eax
je 0x10052eae
push edi
push edi
push edi
call sym.EncDec.dll_ImpersonateClient
test eax, eax
jne 0x10052eae
mov dword [ebp - 0x20], 1
push 0x10148b5c
push esi
call fcn.1010ebfe
add esp, 8
mov ebx, eax
mov dword [ebp - 0x2c], ebx
cmp ebx, edi
jne 0x10052ece
cmp dword [ebp - 0x20], 1
jne 0x10052ec0
mov dword [ebp - 0x20], edi
call sym.EncDec.dll_CancelImpersonateClient
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x100531cf
push 2
push edi
push ebx
call fcn.1010f167
add esp, 0xc
test eax, eax
jne 0x10052eea
push ebx
call fcn.1010f06f
add esp, 4
mov dword [ebp - 0x1c], eax
push edi
push edi
push ebx
call fcn.1010f167
add esp, 0xc
cmp ebx, edi
je 0x10052f15
push ebx
push 0xa0
push 1
lea ecx, [ebp + 0x1104]
push ecx
call fcn.1010eeb5
add esp, 0x10
mov dword [ebp - 0x24], eax
jmp 0x10052f40
push 1
push edi
push edi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
call esi
mov dword [ebp - 0x38], eax
push edi
push edi
push edi
push edi
call esi
lea ecx, [ebp - 0x24]
mov edx, 0xa0
lea esi, [ebp + 0x1104]
xor edi, edi
call fcn.10032840
mov al, byte [ebp + 0x1104]
cmp al, 0x20
je 0x10052f5a
cmp al, 0xd
je 0x10052f5a
cmp al, 0xa
je 0x10052f5a
cmp al, 9
jne 0x10053042
push edi
push edi
cmp ebx, edi
je 0x10052f6b
push ebx
call fcn.1010f167
add esp, 0xc
jmp 0x10052f73
push edi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [ebp - 0x1c]
lea edx, [esi + 0xa8]
push edx
call fcn.1004e860
add esp, 4
mov edi, eax
mov dword [ebp - 0x28], edi
test edi, edi
je 0x10053181
test ebx, ebx
je 0x10052faa
push ebx
push esi
push 1
push edi
call fcn.1010eeb5
add esp, 0x10
mov ecx, eax
mov dword [ebp - 0x34], ecx
jmp 0x10052fbe
lea ecx, [ebp - 0x34]
mov edx, esi
mov esi, edi
xor edi, edi
call fcn.10032840
mov ecx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x28]
cmp ecx, dword [ebp - 0x1c]
jb 0x10053031
xor esi, esi
mov dword [ebp - 0x40], esi
cmp esi, ecx
jae 0x10053031
mov al, byte [esi + edi]
cmp al, 9
je 0x1005317b
cmp al, 0xa
je 0x1005317b
cmp al, 0xd
je 0x1005317b
cmp al, 0x20
je 0x1005317b
push 0xa4
push 0
lea eax, [ebp + 0x1104]
push eax
call fcn.10116880
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x44], eax
lea edi, [eax + esi]
cmp edi, dword [ebp - 0x34]
jae 0x1005302b
mov ecx, 0xa0
cmp eax, ecx
jae 0x1005302b
mov ecx, dword [ebp - 0x28]
mov dl, byte [edi + ecx]
mov byte [ebp + eax + 0x1104], dl
inc eax
jmp 0x10053007
mov dword [ebp - 0x24], eax
mov edi, dword [ebp - 0x28]
push edi
call fcn.1010dc10
add esp, 4
mov al, byte [ebp + 0x1104]
xor edi, edi
mov esi, dword [ebp - 0x1c]
cmp dword [ebp - 0x24], edi
jbe 0x10053169
test al, al
jne 0x1005305e
cmp esi, 0x8006
jbe 0x10053169
mov byte [ebp + 0x1000], 0
push 0x103
push edi
lea eax, [ebp + 0x1001]
push eax
call fcn.10116880
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x24]
push edx
push esi
lea eax, [ebp + 0x1104]
push eax
lea edx, [ebp + 0x1000]
mov ecx, ebx
call fcn.10050f30
add esp, 0x1c
mov dword [ebp - 0x3c], eax
xor edx, edx
cmp edx, edi
je 0x100530b0
lea ecx, [ebp + 0x1000]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x100530a6
xor esi, esi
cmp esi, edi
je 0x10053169
cmp dword [esi], edi
je 0x10053169
xor eax, eax
cmp eax, 2
jne 0x10053169
cmp ebx, edi
je 0x1005318e
push eax
push edi
push ebx
call fcn.1010f167
add esp, 0xc
test eax, eax
jne 0x1005315e
push ebx
call fcn.1010f06f
add esp, 4
cmp eax, 0x2000
jbe 0x1005315e
mov byte [ebp], 0
push 0xfff
push edi
lea ecx, [ebp + 1]
push ecx
call fcn.10116880
mov dword [ebp - 0x30], edi
push 2
push 0xfffff000
push ebx
call fcn.1010f167
push ebx
push 0x1000
push 1
lea edx, [ebp]
push edx
call fcn.1010eeb5
add esp, 0x28
cmp eax, 0x1000
jne 0x1005315e
lea eax, [ebp - 0x30]
push eax
push 0x1000
push edi
push edi
push str.SHIROUZU
push str.ip_messenger
lea ecx, [ebp]
push ecx
call fcn.10047130
add esp, 0x1c
cmp eax, 0xffffffff
je 0x1005315e
mov dword [esi], 2
push edi
push edi
push ebx
call fcn.1010f167
add esp, 0xc
cmp ebx, edi
je 0x1005318e
push ebx
call fcn.1010f263
add esp, 4
mov dword [ebp - 0x2c], edi
jmp 0x1005319d
inc esi
jmp 0x10052fc5
mov al, byte [ebp + 0x1104]
xor edi, edi
jmp 0x10053045
push edi
push edi
mov edx, dword [ebp - 0x38]
push edx
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x20], 1
jne 0x100531c5
mov dword [ebp - 0x20], edi
call sym.EncDec.dll_CancelImpersonateClient
jmp 0x100531c5
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x11a8]
xor ecx, ebp
call fcn.1010d699
add ebp, 0x11ac
mov esp, ebp
pop ebp
ret