Function at 0x1005df40
Capabilities:
Check if file exists
Create thread
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b099c
mov eax, dword fs:[0]
push eax
mov eax, 0x1338
call fcn.100765e0
mov eax, dword [0x100dbc1c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1330], edi
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1334], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1338], eax
lea eax, [ebp - 0x1318]
push eax
mov dword [ebp - 0x132c], 0
call fcn.1003b6a0
add esp, 4
cmp dword [eax], 0
mov ecx, 1
mov dword [ebp - 4], 0
mov dword [ebp - 0x1328], ecx
mov dword [ebp - 0x132c], ecx
je 0x1005dffc
lea eax, [ebp - 0x1344]
push eax
call fcn.1003b6a0
add esp, 4
mov ecx, 3
mov dword [ebp - 4], 1
mov dword [ebp - 0x1328], ecx
mov dword [ebp - 0x132c], ecx
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0x1321], 1
test al, al
jne 0x1005e003
mov byte [ebp - 0x1321], 0
mov ecx, dword [ebp - 0x1328]
or esi, 0xffffffff
test cl, 2
je 0x1005e053
mov edx, dword [ebp - 0x1340]
and ecx, 0xfffffffd
mov dword [ebp - 0x1328], ecx
mov dword [ebp - 0x132c], edx
test edx, edx
je 0x1005e053
mov eax, esi
lock xadd dword [edx + 4], eax
jne 0x1005e053
mov eax, dword [edx]
mov ecx, edx
call dword [eax]
mov ecx, dword [ebp - 0x132c]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x1005e04d
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x1328]
and ecx, 0xfffffffe
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1328], ecx
mov ecx, dword [ebp - 0x1314]
mov dword [ebp - 0x132c], ecx
test ecx, ecx
je 0x1005e094
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x1005e094
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x132c]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x1005e094
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x1321], 0
je 0x1005e124
lea eax, [ebp - 0x1318]
push eax
call fcn.1003b6a0
add esp, 4
mov edi, dword [eax]
lea ecx, [ebp - 0xa8]
mov dword [ebp - 4], 2
call fcn.10015e70
mov esi, eax
push str.come_in_func::GetIconInfo
push esi
mov byte [ebp - 4], 3
call fcn.10012080
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x14]
lea ecx, [ebp - 0xa8]
call fcn.10012280
mov edi, dword [ebp - 0x1314]
or esi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1005e11e
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x1005e11e
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x1005e11e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [ebp - 0x1330]
cmp dword [edi + 0x2c], 0
jne 0x1005e5e0
lea eax, [edi + 0x78]
mov dword [ebp - 0x132c], eax
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x1005e468
push 0x800
lea eax, [ebp - 0x1310]
push 0
push eax
call fcn.100837f0
push 0x800
lea eax, [ebp - 0xb10]
push 0
push eax
call fcn.100837f0
add esp, 0x18
lea eax, [ebp - 0x1310]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x100
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.100837f0
add esp, 0xc
xor edi, edi
nop word [eax + eax]
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x310], ax
lea eax, [ebp - 0x1320]
push eax
movups xmmword [ebp - 0x1320], xmm0
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.100837f0
movzx eax, byte [ebp - 0x1311]
push eax
movzx eax, byte [ebp - 0x1312]
push eax
movzx eax, byte [ebp - 0x1313]
push eax
movzx eax, byte [ebp - 0x1314]
push eax
movzx eax, byte [ebp - 0x1315]
push eax
movzx eax, byte [ebp - 0x1316]
push eax
movzx eax, byte [ebp - 0x1317]
push eax
movzx eax, byte [ebp - 0x1318]
push eax
movzx eax, word [ebp - 0x131a]
push eax
movzx eax, word [ebp - 0x131c]
push eax
push dword [ebp - 0x1320]
lea eax, [ebp - 0x210]
push str._08X__04X__04x__02X_02X__02X_02X_02X_02X_02X_02X
push eax
call fcn.100331a0
lea eax, [ebp - 0x210]
add esp, 0x40
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1005e246
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x310]
push 0x80
push eax
call fcn.1008a665
add esp, 0x10
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x1310]
push eax
lea eax, [ebp - 0xb10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str..tmp
lea eax, [ebp - 0xb10]
push 0x400
push eax
call fcn.1008ad3e
add esp, 0xc
lea eax, [ebp - 0xb10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1005e431
inc edi
cmp edi, 0xa
jl 0x1005e1a0
lea eax, [ebp - 0x1344]
push eax
call fcn.1003b6a0
add esp, 4
mov ecx, dword [ebp - 0x1328]
or ecx, 4
mov dword [ebp - 4], 4
cmp dword [eax], 0
mov dword [ebp - 0x1328], ecx
mov dword [ebp - 0x132c], ecx
je 0x1005e333
lea eax, [ebp - 0x1318]
push eax
call fcn.1003b6a0
add esp, 4
mov ecx, dword [ebp - 0x1328]
or ecx, 8
mov dword [ebp - 4], 5
mov dword [ebp - 0x1328], ecx
mov dword [ebp - 0x132c], ecx
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0x1321], 1
test al, al
jne 0x1005e33a
mov byte [ebp - 0x1321], 0
mov edi, dword [ebp - 0x1314]
test edi, edi
je 0x1005e36e
mov ecx, dword [ebp - 0x1328]
test cl, 8
je 0x1005e36e
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x1005e36e
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x1005e36e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [ebp - 0x1340]
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1005e39e
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x1005e39e
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x1005e39e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
cmp byte [ebp - 0x1321], 0
je 0x1005e5e0
lea eax, [ebp - 0x1318]
push eax
call fcn.1003b6a0
add esp, 4
mov edi, dword [eax]
lea ecx, [ebp - 0xa8]
mov dword [ebp - 4], 6
call fcn.10015e70
mov esi, eax
push str.get_temp_dir_fail.
push esi
mov byte [ebp - 4], 7
call fcn.10012080
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x14]
lea ecx, [ebp - 0xa8]
call fcn.10012280
mov edi, dword [ebp - 0x1314]
test edi, edi
je 0x1005e5e0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x1005e5e0
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x1005e5e0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
jmp 0x1005e5e0
lea edx, [ebp - 0xb10]
lea edi, [edx + 2]
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1005e440
mov ecx, dword [ebp - 0x132c]
lea eax, [ebp - 0xb10]
sub edx, edi
sar edx, 1
push edx
push eax
call fcn.10009e80
mov edi, dword [ebp - 0x1330]
mov eax, dword [ebp + 8]
mov dword [edi + 0x1c], eax
mov eax, dword [ebp - 0x1334]
cmp edi, eax
je 0x1005e48d
cmp dword [eax + 0x14], 0x10
mov ecx, eax
jb 0x1005e482
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, edi
call fcn.1001dd80
push dword [ebp - 0x1338]
lea ecx, [edi + 0x18]
call fcn.10009ac0
lea ecx, [edi + 0x74]
call fcn.1000a6b0
mov eax, dword [ebp - 0x1334]
cmp dword [eax + 0x14], 0x10
jb 0x1005e4b1
mov eax, dword [eax]
push 0xfde9
push eax
lea ecx, [ebp - 0x114]
call fcn.1001fee0
push dword [eax]
lea ecx, [ebp - 0x133c]
mov dword [ebp - 4], 8
call fcn.10009b50
mov eax, dword [ebp - 0x114]
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 0xa
cmp eax, ecx
je 0x1005e4f3
push eax
call fcn.10087651
add esp, 4
mov ecx, dword [0x100e0e78]
test ecx, ecx
jne 0x1005e557
push 0x100da020
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100e0e78], 0
jne 0x1005e546
push 4
call fcn.10076018
add esp, 4
mov dword [ebp - 0x1334], eax
mov byte [ebp - 4], 0xb
test eax, eax
je 0x1005e534
mov ecx, eax
call fcn.100746d0
mov ecx, eax
jmp 0x1005e536
xor ecx, ecx
mov byte [ebp - 4], 0xa
xchg dword [ebp - 0x1328], eax
mov dword [0x100e0e78], ecx
push 0x100da020
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x100e0e78]
call fcn.10074750
test eax, eax
je 0x1005e592
mov ecx, dword [ebp - 0x1338]
push dword [ecx]
push dword [eax + 4]
push dword [eax]
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 0x10]
lea eax, [edi + 0x30]
push dword [ebp - 0x133c]
push str.http:__dg.ludashi.com_dcp_pid_get
push str._s_iid_sapp_spid_smodver_smid_smid2_spro_s
push eax
call fcn.10021c80
add esp, 0x28
push 0
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x24]
push eax
push 0
push edi
push 0x1005fb30
push 0
push 0
call fcn.1008a7cf
mov edx, dword [ebp - 0x133c]
add esp, 0x18
mov dword [edi + 0x28], eax
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x1005e5e0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100763b4
mov esp, ebp
pop ebp
ret 0x14