Function at 0x404f40
Capabilities:
Create directory
Delete file
Extract resource via kernel32 functions
Get file attributes
Resolve function by parsing pe exports
Set file attributes
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x42bc68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
mov ebx, ecx
push 0x100
mov dword [esp + 0x40], ebx
call fcn.00423943
mov esi, eax
add esp, 4
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x4c]
push ecx
mov ecx, ebx
mov dword [esp + 0x20], esi
call fcn.00404d80
test eax, eax
jne 0x404fad
test esi, esi
je 0x404f95
push esi
call fcn.00423948
add esp, 4
pop esi
mov eax, 2
pop ebx
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
add esp, 0x74
ret 0xc
push ebp
xor ebp, ebp
mov dword [esp + 0x34], 1
mov dword [esp + 0x14], ebp
call fcn.004233ae
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x61a88]
push 0x104
push eax
push ebp
mov dword [esp + 0x88], ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, dword [ebx + 0x61a88]
push ecx
lea ecx, [esp + 0x10]
call fcn.004017a0
mov eax, dword [ebx + 0x61a88]
cmp eax, ebp
mov byte [esp + 0x7c], 1
je 0x405017
push eax
call fcn.00423948
add esp, 4
mov dword [ebx + 0x61a88], ebp
push edi
mov edi, dword [esp + 0x8c]
cmp edi, ebp
push 0x5c
je 0x4050c9
mov edx, dword [esp + 0x14]
push edx
call fcn.00410e6d
add esp, 8
cmp eax, ebp
jne 0x40503f
or esi, 0xffffffff
jmp 0x405047
sub eax, dword [esp + 0x10]
sar eax, 1
mov esi, eax
call fcn.004233ae
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x8c], eax
push esi
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x88], 2
call fcn.00404940
push eax
lea ecx, [esp + 0x90]
mov byte [esp + 0x84], 3
call fcn.00402f50
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
mov byte [esp + 0x80], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4050af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 0x8c]
push edi
push esi
lea ecx, [esp + 0x18]
call fcn.00402d20
lea eax, [esi - 0x10]
jmp 0x40516d
mov eax, dword [esp + 0x14]
push eax
call fcn.00410e6d
add esp, 8
cmp eax, ebp
jne 0x4050df
or esi, 0xffffffff
jmp 0x4050e7
sub eax, dword [esp + 0x10]
sar eax, 1
mov esi, eax
call fcn.004233ae
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x8c], eax
add esi, 4
push esi
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x88], 4
call fcn.00404940
push eax
lea ecx, [esp + 0x90]
mov byte [esp + 0x84], 5
call fcn.00402f50
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
mov byte [esp + 0x80], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405152
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x14]
call fcn.00402f50
mov eax, dword [esp + 0x8c]
add eax, 0xfffffff0
mov byte [esp + 0x80], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40518c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
mov eax, dword [eax - 0xc]
add eax, 0xfffffffc
push eax
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x18]
call fcn.00404940
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 0xc]
add eax, 0xfffffffc
push eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x88], 6
call fcn.00404940
mov eax, dword [eax]
lea ecx, [esp + 0x8c]
push ecx
push eax
mov byte [esp + 0x88], 7
call fcn.00404bb0
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
add esp, 8
mov byte [esp + 0x80], 6
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40520a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
mov eax, dword [eax - 0xc]
lea ecx, [eax + eax + 2]
push ecx
call fcn.00423943
mov edx, dword [esp + 0x14]
mov edi, eax
mov dword [ebx + 0x61a88], edi
mov eax, dword [edx - 0xc]
lea ecx, [eax + eax + 2]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x90]
mov eax, dword [ebx + 0x61a88]
add esp, 4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebx + 0x61a88]
push ecx
lea edx, [esp + 0x18]
push 0x42e550
push edx
call fcn.00402f30
mov esi, dword [esp + 0x20]
add esp, 0xc
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40532a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x40532a
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x4052a3
push eax
call fcn.00423948
add esp, 4
lea eax, [edi - 0x10]
mov byte [esp + 0x80], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4052c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x80], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4052eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
mov dword [esp + 0x80], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405310
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop ebp
pop esi
mov eax, 4
pop ebx
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
add esp, 0x74
ret 0xc
cmp dword [esp + 0x50], ebp
mov dword [esp + 0x28], 1
mov dword [esp + 0x4c], ebp
jbe 0x405774
lea eax, [ebx + 8]
mov dword [esp + 0x40], eax
jmp 0x405350
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x2c], 0
call fcn.004233ae
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
mov ebp, dword [esp + 0x28]
mov eax, dword [ebx + ebp*4 + 0x61a88]
lea esi, [ebx + ebp*4 + 0x61a88]
push str._DIR_
push eax
mov byte [esp + 0x88], 8
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
je 0x405405
nop
mov ecx, dword [esi]
push ecx
lea edx, [esp + 0x18]
push 0x42e2cc
push edx
call fcn.00402f30
mov eax, dword [ebx + 0x61a88]
add esp, 0xc
push eax
push str._DIR_
lea ecx, [esp + 0x1c]
call fcn.00402d20
mov ecx, dword [esp + 0x14]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4053ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x405803
mov edx, dword [esi + 4]
add esi, 4
push str._DIR_
inc ebp
push edx
mov dword [esp + 0x30], ebp
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
jne 0x4053a0
mov eax, dword [ebx + ebp*4 + 0x61a88]
test eax, eax
je 0x405831
push eax
lea eax, [esp + 0x20]
push 0x42e2cc
push eax
call fcn.00402f30
push 0x42e2c8
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x6c]
push edx
call fcn.00404af0
lea ecx, [esp + 0x34]
push ecx
push eax
lea edx, [esp + 0x74]
push edx
mov byte [esp + 0xa4], 9
call fcn.00404a40
add esp, 0x24
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x84], 0xa
call fcn.00402f50
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
mov byte [esp + 0x80], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40548b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
mov byte [esp + 0x80], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4054b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [esp + 0x28]
inc edi
lea ecx, [esp + 0x60]
mov dword [esp + 0x28], edi
call fcn.00407bcb
mov byte [esp + 0x80], 0xb
call fcn.004233ae
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
mov ebp, dword [esp + 0x1c]
push ebp
lea eax, [esp + 0x28]
push str.S_MR_X__W_fT_rT_
push eax
mov byte [esp + 0x8c], 0xc
call fcn.00402f30
add esp, 0xc
push 0
push ebp
lea ecx, [esp + 0x68]
call fcn.00407c60
test eax, eax
mov esi, dword [esp + 0x24]
je 0x405551
mov ecx, dword [ebx + 0xc3510]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0xa
push ecx
call edi
mov edx, dword [ebx + 0xc3510]
push 0x24
push 0x42e218
push esi
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x40585c
push eax
mov eax, dword [ebx + 0xc3510]
push eax
call edi
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x60]
call fcn.004078d8
push ebp
mov dword [esp + 0x4c], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x405578
and eax, 0xfffffffe
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x5c], edi
je 0x405954
mov eax, dword [esp + 0x3c]
test eax, eax
jbe 0x405722
lea esp, [esp]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4056a1
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x88]
mov edi, dword [esp + 0x90]
add ecx, edx
movzx eax, cx
push str.RT_FILE
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
je 0x405a15
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
je 0x405a81
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x3c], ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, ebp
jbe 0x40568d
mov ecx, dword [esp + 0x18]
lea edx, [ebx - 1]
mov eax, 0x7a44c6b
mul edx
shr edx, 3
inc edx
shl edx, 8
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
jmp 0x405640
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 4]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push ecx
push 0x100
push esi
lea ecx, [edx + ebp]
push 0x10c
push ecx
mov ecx, dword [eax + 0xc3508]
call fcn.00402590
mov edi, dword [esp + 0x30]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x30]
add ebp, 0x10c
add ecx, 0x100
cmp ebp, ebx
mov dword [esp + 0x30], ecx
jb 0x405640
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x30], 0
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
sub eax, esi
mov esi, dword [esp + 0x3c]
sub esi, edx
cmp esi, eax
jbe 0x4056bb
mov esi, eax
mov eax, dword [esp + 0x18]
push 0
lea edx, [esp + 0x4c]
push edx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405ad8
cmp dword [esp + 0x48], esi
jne 0x405ad8
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
add eax, esi
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
add eax, esi
cmp eax, ecx
mov dword [esp + 0x30], eax
jb 0x405710
mov eax, dword [esp + 0x38]
inc eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x38], eax
jmp 0x405714
add dword [esp + 0x18], esi
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [esp + 0x3c]
jb 0x4055b0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x24]
call fcn.00401420
lea ecx, [esp + 0x60]
mov byte [esp + 0x80], 8
call fcn.00407bf1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x80], 6
call fcn.00401420
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x50]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x40], edx
jb 0x405350
mov eax, dword [esp + 0x8c]
add eax, 0xfffffff0
mov byte [esp + 0x80], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40579d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x80], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4057c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x80], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4057ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
add esp, 0x74
ret 0xc
mov eax, dword [esp + 0x20]
test eax, eax
je 0x405814
push eax
call fcn.00423948
add esp, 4
lea eax, [edi - 0x10]
mov byte [esp + 0x80], 6
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4059b0
lea eax, [edi - 0x10]
mov byte [esp + 0x80], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405774
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x405774
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40586d
push eax
call fcn.00423948
add esp, 4
lea eax, [esi - 0x10]
mov byte [esp + 0x80], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40588f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x60]
mov byte [esp + 0x80], 8
call fcn.00407bf1
lea eax, [ebp - 0x10]
mov byte [esp + 0x80], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4058c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x8c]
add eax, 0xfffffff0
mov byte [esp + 0x80], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4058eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x80], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405911
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x80], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40593a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop ebp
pop esi
mov eax, 5
pop ebx
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
add esp, 0x74
ret 0xc
mov eax, dword [esp + 0x20]
test eax, eax
je 0x405965
push eax
call fcn.00423948
add esp, 4
lea eax, [esi - 0x10]
mov byte [esp + 0x80], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405987
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x60]
mov byte [esp + 0x80], 8
call fcn.00407bf1
lea eax, [ebp - 0x10]
mov byte [esp + 0x80], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4059ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x8c]
add eax, 0xfffffff0
mov byte [esp + 0x80], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4059e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x80], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405a09
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
jmp 0x4052ee
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x405a26
push eax
call fcn.00423948
add esp, 4
lea ecx, [esp + 0x24]
call fcn.00401420
lea ecx, [esp + 0x60]
mov byte [esp + 0x80], 8
call fcn.00407bf1
lea ecx, [esp + 0x1c]
call fcn.00401420
lea ecx, [esp + 0x8c]
call fcn.00401420
lea ecx, [esp + 0x10]
call fcn.00401420
lea ecx, [esp + 0x14]
call fcn.00401420
pop edi
pop ebp
pop esi
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
add esp, 0x74
ret 0xc
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x405a92
push eax
call fcn.00423948
add esp, 4
lea ecx, [esp + 0x24]
call fcn.00401420
lea ecx, [esp + 0x60]
mov byte [esp + 0x80], 8
call fcn.00407bf1
lea ecx, [esp + 0x1c]
call fcn.00401420
lea ecx, [esp + 0x8c]
call fcn.00401420
lea ecx, [esp + 0x10]
call fcn.00401420
lea ecx, [esp + 0x14]
call fcn.00401420
jmp 0x4057ec
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x80], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405b05
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x60]
mov byte [esp + 0x80], 8
call fcn.00407bf1
lea eax, [ebp - 0x10]
mov byte [esp + 0x80], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405b38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x8c]
add eax, 0xfffffff0
mov byte [esp + 0x80], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405b61
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x80], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405b87
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x80], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405bb0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x78]
pop edi
pop ebp
pop esi
or eax, 0xffffffff
pop ebx
mov dword fs:[0], ecx
add esp, 0x74
ret 0xc