Function at 0x403810
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x500d51
mov eax, dword fs:[0]
push eax
sub esp, 0x4f4
mov eax, dword [0x5355a0]
xor eax, esp
mov dword [esp + 0x4f0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5355a0]
xor eax, esp
push eax
lea eax, [esp + 0x508]
mov dword fs:[0], eax
xor ebx, ebx
mov byte [esp + 0x1c], bl
mov dword [esp + 0x18], ebx
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x20]
push eax
push str.UserManager
mov dword [esp + 0x520], ebx
call fcn.00404110
add esp, 4
mov ecx, eax
call fcn.00486e90
test al, al
je 0x403acf
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
push str.UserManager
call fcn.00404110
add esp, 4
mov ecx, eax
call fcn.00485e70
test al, al
je 0x403acf
call fcn.0042b500
mov esi, eax
cmp word [esi], bx
jne 0x4038c5
push str..pipeSogouPicFaceTaskPipeNameC3
push 0x104
push esi
call fcn.004c3833
add esp, 0xc
push esi
lea ecx, [esp + 0x40]
call fcn.00434b00
push 0x516cc8
push 0x51620c
lea edx, [esp + 0x44]
mov byte [esp + 0x518], 1
call fcn.004351e0
mov eax, dword [esp + 0x2c]
push eax
push 0x516dbc
lea edx, [esp + 0x4c]
call fcn.004351e0
push 0x516cc8
push 0x51620c
lea edx, [esp + 0x54]
call fcn.004351e0
push 0xb
push 0x516dbc
lea edx, [esp + 0x5c]
call fcn.004351e0
add esp, 0x20
lea eax, [esp + 0x48]
cmp byte [esp + 0x158], bl
jne 0x403934
mov eax, dword [esp + 0x44]
push ebx
push 0x80
push 3
push ebx
push ebx
push 0xc0000000
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebp, 0xffffffff
je 0x403aa9
lea esi, [esp + 0x164]
call fcn.0042aff0
mov byte [esp + 0x510], 2
mov eax, 0x516ccc
lea edx, [esp + 0x180]
mov dword [esp + 0x16c], 0xfffffff4
call fcn.00434c20
mov edx, dword [esp + 0x2a8]
mov eax, dword [esp + 0x3cc]
add eax, edx
add eax, dword [esp + 0x184]
mov dword [esp + 0x28], 0xb
lea eax, [eax + eax + 0x2c]
mov dword [esp + 0x30], eax
add eax, 0xc
mov dword [esp + 0x38], eax
add eax, 8
push eax
mov dword [esp + 0x30], ebx
mov byte [esp + 0x38], 0x53
mov byte [esp + 0x39], 0x47
mov byte [esp + 0x3a], 0x50
mov byte [esp + 0x3b], 0x54
call fcn.004c669c
mov ecx, dword [esp + 0x3c]
add esp, 4
add ecx, 8
push ecx
mov esi, eax
push ebx
push esi
call fcn.004cab10
add esp, 0xc
mov eax, esi
lea edi, [esp + 0x34]
call fcn.0042ac40
test al, al
je 0x403a94
lea eax, [esi + 8]
lea edi, [esp + 0x28]
call fcn.0042ac90
test al, al
je 0x403a94
mov edx, dword [esp + 0x3cc]
mov eax, dword [esp + 0x2a8]
lea edi, [edx + eax]
add edi, dword [esp + 0x184]
lea ecx, [esi + 0x14]
push ecx
lea edx, [esp + 0x168]
lea edi, [edi + edi + 0x2c]
push edx
call fcn.0042ad10
test al, al
je 0x403a94
mov ecx, dword [esp + 0x3cc]
mov edx, dword [esp + 0x2a8]
push ebx
add ecx, edx
add ecx, dword [esp + 0x188]
lea eax, [esp + 0x24]
push eax
lea eax, [ecx + ecx + 0x40]
push eax
push esi
push ebp
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x164]
call fcn.0042b080
lea ecx, [esp + 0x3c]
call fcn.00434b70
jmp 0x403acf
push esi
call fcn.004c6691
add esp, 4
lea ecx, [esp + 0x164]
call fcn.0042b080
mov dword [esp + 0x3c], vtable.t_str.0
cmp byte [esp + 0x158], bl
jne 0x403acf
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x48]
cmp eax, ecx
je 0x403acf
push eax
call fcn.004c31b0
add esp, 4
lea ecx, [esp + 0x18]
call fcn.00433d50
mov ecx, dword [esp + 0x508]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4f0]
xor ecx, esp
call fcn.004c31a1
add esp, 0x500
ret