Function at 0x4156e0
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e3cd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x248
mov eax, dword [0x47cadc]
push ebx
push esi
push edi
add eax, 0xfffffff0
mov dword [ebp - 0x10], esp
mov edi, ecx
push eax
mov dword [ebp - 0x60], edi
call fcn.004013c0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x18], eax
push 0x463078
push 0x462b80
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.00410790
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00428180
add esp, 8
mov byte [ebp - 4], 1
mov byte [ebp + 0xb], 0
call fcn.0044ed62
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 2
call fcn.0044ed62
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x20]
push str._s.zip
push ecx
mov byte [ebp - 4], 3
call fcn.00401c60
mov eax, dword [ebp - 0x20]
add esp, 8
add eax, 0xfffffff0
mov dword [ebp - 0x5c], esp
mov esi, esp
push eax
call fcn.004013c0
add eax, 0x10
mov dword [esi], eax
mov eax, dword [0x47c930]
add eax, 0xfffffff0
mov dword [ebp - 0x64], esp
mov esi, esp
push eax
mov byte [ebp - 4], 4
call fcn.004013c0
add eax, 0x10
add esp, 4
mov ecx, edi
mov dword [esi], eax
mov byte [ebp - 4], 3
call fcn.00410f80
push 0
mov ecx, edi
call fcn.0040d050
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x254]
call fcn.00426510
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x38]
push ecx
mov byte [ebp - 4], 6
call fcn.004111c0
add esp, 0xc
mov eax, dword [eax]
push 0
push 0
push eax
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 7
call fcn.004265c0
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
mov byte [ebp - 4], 6
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41583f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0x4616a8
lea ecx, [ebp - 0x24]
call fcn.004026d0
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x1dc]
mov byte [ebp - 4], 8
call fcn.00429ff0
push 0x463078
push eax
lea ecx, [ebp - 0x38]
mov bl, 9
push ecx
mov byte [ebp - 4], bl
call fcn.00401f80
add esp, 0xc
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xa
call fcn.00401cf0
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4158a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
mov byte [ebp - 4], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4158c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [ebp - 0x254]
call fcn.00426620
xor esi, esi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x40], esi
cmp esi, dword [ebp - 0x80]
jge 0x416016
cmp byte [edi + 0x74], 1
je 0x415fe3
lea ecx, [ebp - 0xf0]
call fcn.004297e0
push esi
lea eax, [ebp - 0xf0]
push eax
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 0xb
call fcn.00427fb0
test al, al
lea ecx, [ebp - 0xf0]
je 0x415fda
lea eax, [ebp - 0x78]
push eax
call fcn.00429890
mov esi, eax
push 0x463190
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x7c]
push edx
mov byte [ebp - 4], 0xc
call fcn.00401f80
add esp, 0xc
push esi
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 0xd
call fcn.004111c0
add esp, 0xc
mov eax, dword [ebp - 0x7c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415971
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x78]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xf
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415992
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx - 4]
mov esi, dword [edx - 0xc]
mov ecx, 1
sub ecx, eax
mov eax, dword [edx - 8]
sub eax, esi
or eax, ecx
jge 0x4159b7
push esi
lea ecx, [ebp - 0x14]
call fcn.00401370
mov edx, dword [ebp - 0x14]
push edx
call fcn.0043cf59
add esp, 4
test esi, esi
jl 0x41600c
mov eax, dword [ebp - 0x14]
cmp esi, dword [eax - 8]
jg 0x41600c
mov dword [eax - 0xc], esi
mov eax, dword [ebp - 0x14]
mov byte [esi + eax], 0
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x415d10
mov edx, dword [ebp - 0x14]
push edx
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 0x19], 0
call fcn.00428130
add esp, 8
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx - 0xc]
xor esi, esi
cmp eax, esi
mov byte [ebp - 4], 0x11
je 0x415a14
mov byte [ebp - 0x19], 1
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
push eax
call fcn.004013c0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x58], eax
push 0x4616a8
push 0x463078
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0x12
call fcn.00410790
xor ebx, ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
push eax
mov byte [ebp - 4], 0x13
call fcn.004013c0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x4c], eax
push 0x462b80
push 0x463078
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x14
call fcn.00410790
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
push eax
call fcn.004013c0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x34], eax
lea edx, [ebp - 0x50]
push edx
push 0x462b80
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x15
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x3c], 0xffffffff
mov dword [ebp - 0x54], esi
call fcn.00411080
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x16
call fcn.00401cf0
mov eax, dword [ebp - 0x90]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x15
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415af0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x415af0
mov edi, dword [ebp - 0x34]
push 0x4616a8
push edi
call fcn.0043c1ad
add esp, 8
test eax, eax
je 0x415bbc
mov eax, dword [ebp - 0x58]
push edi
push eax
call fcn.0043d00e
add esp, 8
test eax, eax
jne 0x415b20
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x3c], ecx
test ebx, ebx
je 0x415b56
mov ecx, dword [ebp - 0x68]
mov eax, esi
sub eax, ebx
sub ecx, ebx
sar eax, 2
sar ecx, 2
cmp eax, ecx
jae 0x415b56
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x34]
push ecx
push 1
push esi
call fcn.00406280
add esp, 0x14
add esi, 4
mov dword [ebp - 0x6c], esi
jmp 0x415b6b
lea edx, [ebp - 0x34]
push edx
push 1
push esi
lea ecx, [ebp - 0x74]
call fcn.00406510
mov esi, dword [ebp - 0x6c]
mov ebx, dword [ebp - 0x70]
lea eax, [ebp - 0x50]
push eax
push 0x462b80
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.00411080
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x17
call fcn.00401cf0
mov eax, dword [ebp - 0x88]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x15
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x415bb4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
inc dword [ebp - 0x54]
jmp 0x415af0
push 0x4616a8
lea ecx, [ebp - 0x48]
call fcn.004026d0
test ebx, ebx
mov byte [ebp - 4], 0x18
je 0x415c43
sub esi, ebx
mov edi, esi
sar edi, 2
test edi, edi
je 0x415c43
xor esi, esi
mov edi, edi
cmp esi, edi
jae 0x415c3b
cmp esi, dword [ebp - 0x3c]
je 0x415c38
lea eax, [ebx + esi*4]
push 0x463078
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00401f80
add esp, 0xc
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x19
call fcn.00401b80
mov eax, dword [ebp - 0x84]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x18
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415c38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
inc esi
jmp 0x415be0
lea ecx, [ebp - 0x74]
call fcn.00406d30
mov al, byte [ebp - 0x19]
test al, al
je 0x415c57
push 0x463078
lea ecx, [ebp - 0x48]
call fcn.00411150
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x14]
call fcn.00401cf0
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x15
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415c84
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415ca5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x13
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415cc6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [ebp - 0x74]
call fcn.00406d30
mov eax, dword [ebp - 0x58]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x11
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415cef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xf
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415d10
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
push eax
call fcn.00411610
add esp, 4
cmp al, 1
jne 0x415f00
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0xf0]
call fcn.00429890
mov edx, dword [ebp - 0x24]
push 0x4616a8
push edx
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x1a
call fcn.00410790
mov eax, dword [ebp - 0x30]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x3c], esp
mov esi, esp
push eax
call fcn.004013c0
add eax, 0x10
add esp, 4
mov dword [esi], eax
push ecx
mov eax, esp
mov dword [ebp - 0x50], esp
push 0x47c93c
lea ecx, [ebp - 0x20]
push ecx
push eax
mov byte [ebp - 4], 0x1b
call fcn.004111c0
mov esi, dword [ebp - 0x60]
add esp, 0xc
mov ecx, esi
mov byte [ebp - 4], 0x1a
call fcn.00410f80
push 7
push str..source
lea ecx, [ebp - 0x30]
call fcn.00401b80
push 0x463190
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x8c]
push eax
call fcn.00401f80
add esp, 0xc
mov ecx, dword [ebp - 0x30]
mov eax, dword [eax]
mov edx, dword [ebp - 0x40]
push 0xffff
push 0
push 0
push ecx
mov ecx, dword [esi + 0x17c]
push 1
push eax
mov eax, dword [esi + 0x180]
push edx
push eax
push ecx
push esi
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 0x1c
call fcn.00428570
test al, al
mov eax, dword [ebp - 0x8c]
sete bl
add eax, 0xfffffff0
mov byte [ebp - 4], 0x1a
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x415e10
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x415e1c
mov eax, dword [ebp - 0x30]
jmp 0x415f95
push 0x463190
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x94]
push ecx
call fcn.00401f80
add esp, 0xc
lea edx, [ebp - 0x30]
push edx
push eax
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 0x1d
call fcn.004111c0
mov eax, dword [ebp - 0x94]
add eax, 0xfffffff0
add esp, 0xc
mov byte [ebp - 4], 0x1a
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415e6d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x64]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415e9e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xf
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415ebf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415ee0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 8
call fcn.00429750
mov eax, dword [ebp - 0x40]
mov edi, dword [ebp - 0x60]
inc eax
mov dword [ebp - 0x40], eax
mov esi, eax
jmp 0x4158d7
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0xf0]
call fcn.00429890
mov ecx, dword [ebp - 0x24]
push 0x4616a8
push ecx
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x1e
call fcn.00410790
push 0x463190
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x5c]
push eax
call fcn.00401f80
add esp, 0xc
mov ecx, dword [ebp - 0x44]
mov eax, dword [eax]
mov edx, dword [ebp - 0x40]
push 0xffff
push 0
push 0
push ecx
push 1
push eax
push edx
push 0
push 0
push 0
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 0x1f
call fcn.00428570
test al, al
mov eax, dword [ebp - 0x5c]
sete bl
add eax, 0xfffffff0
mov byte [ebp - 4], 0x1e
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415f8a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
mov eax, dword [ebp - 0x44]
je 0x415ea1
add eax, 0xfffffff0
mov byte [ebp - 4], 0xf
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415fb3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415fd4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 8
call fcn.00429750
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416004
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [ebp - 0x254]
jmp 0x41604f
push 0x80070057
call fcn.004010d0
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416037
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, byte [ebp + 0xb]
test al, al
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x254]
je 0x416167
mov byte [ebp - 4], 3
call fcn.00426970
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416079
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41609a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4160bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4160df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
call fcn.00427710
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 3
call fcn.00426970
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41619e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4161bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4161e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416204
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8