Function at 0x50bc90
Capabilities:
Copy file
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac1e2
mov eax, dword fs:[0]
push eax
mov eax, 0x1ec8
call fcn.0056e430
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push ecx
push str.CBaseOSSpecTypeWin2K::CopyMonitorFile
lea ecx, [ebp - 0x1e88]
mov dword [ebp - 0x1e90], eax
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x50bd23
test byte [ecx + 0x1c], 1
je 0x50bd23
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5dd3a8
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x1f
call fcn.00401840
add esp, 0xc
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x50c8f2
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x1eb8], edi
mov byte [ebp - 4], 1
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x50c8fc
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1ec4], esi
push 0x208
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push 0
push eax
call fcn.00571c00
push 0x7fe
lea eax, [ebp - 0xe26]
push 0
push eax
call fcn.00571c00
mov ecx, dword [0x6184f0]
add esp, 0x18
xor eax, eax
mov dword [ebp - 0x1ebc], 0
mov word [ebp - 0xe28], ax
lea eax, [ebp - 0xe28]
mov ecx, dword [ecx + 0x1c]
push eax
push str.USEMONITORFILE
call fcn.004f65f0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x50be08
test byte [ecx + 0x1c], 4
je 0x50be08
cmp dword [0x608f68], 8
lea edx, [ebp - 0xe28]
push edx
mov eax, 0x608f54
mov edx, 0x5dd3a8
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x20
call fcn.00405920
mov ecx, dword [0x608f30]
add esp, 0x10
cmp word [ebp - 0xe28], 0
jne 0x50be99
mov byte [ebp - 0x1e84], 1
cmp ecx, 0x608f30
je 0x50be59
test byte [ecx + 0x1c], 1
je 0x50be59
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 1
cmovae eax, dword [0x608f54]
mov edx, 0x5dd3a8
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x21
call fcn.004018a0
add esp, 0x10
lea edx, [esi - 0x10]
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x50be77
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x50c8c4
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x50c8c4
push 1
lea ecx, [ebp - 0x1ec4]
call fcn.00403020
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x50c906
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1e9c], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
shr eax, 0x10
mov dword [ebp - 0x1eb4], eax
test eax, eax
jne 0x50bf03
lea eax, [ebp - 0x218]
movzx eax, ax
lea ecx, [ebp - 0x1e9c]
push eax
call fcn.00403020
jmp 0x50bf32
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50bf10
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1e9c]
call fcn.00403bb0
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x1e9c]
mov ebx, dword [esi - 0xc]
cmp ebx, 1
jg 0x50bf51
lea ecx, [esi - 0x10]
call fcn.00403af0
add eax, 0x10
jmp 0x50bf88
mov ecx, dword [esi - 0x10]
test ecx, ecx
je 0x50bf61
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x50bf6d
call fcn.00550b4e
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
lea eax, [esi - 2]
push 1
lea eax, [eax + ebx*2]
push eax
lea ecx, [ebp - 0x1e8c]
call fcn.00403d50
mov eax, dword [ebp - 0x1e8c]
mov edx, 0x5c692c
mov ecx, eax
nop
mov si, word [ecx]
cmp si, word [edx]
jne 0x50bfb6
test si, si
je 0x50bfb2
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x50bfb6
add ecx, 4
add edx, 4
test si, si
jne 0x50bf90
xor esi, esi
jmp 0x50bfbb
sbb esi, esi
or esi, 1
or ebx, 0xffffffff
mov byte [ebp - 4], 4
lea edx, [eax - 0x10]
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x50bfd9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x50bfef
push 1
push 0x5c692c
lea ecx, [ebp - 0x1e9c]
call fcn.00405fe0
lea ecx, [ebp - 0x1eb0]
call fcn.0046a2f0
push 0
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x1eb0]
call fcn.0046abd0
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x50c910
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1ea4], eax
mov byte [ebp - 4], 7
cmp dword [ebp - 0x1eb4], 0
jne 0x50c053
lea eax, [ebp - 0x218]
movzx eax, ax
lea ecx, [ebp - 0x1ea4]
push eax
call fcn.00403020
jmp 0x50c082
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50c060
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1ea4]
call fcn.00403bb0
mov byte [ebp - 4], 8
mov esi, dword [ebp - 0x1ea4]
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x1e8c], eax
cmp eax, 1
jg 0x50c0a7
lea ecx, [esi - 0x10]
call fcn.00403af0
add eax, 0x10
jmp 0x50c0e2
mov ecx, dword [esi - 0x10]
test ecx, ecx
je 0x50c0b7
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x50c0c3
call fcn.00550b4e
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
mov eax, dword [ebp - 0x1e8c]
lea ecx, [ebp - 0x1e8c]
dec eax
push 1
lea eax, [esi + eax*2]
push eax
call fcn.00403d50
mov eax, dword [ebp - 0x1e8c]
mov edx, 0x5c692c
mov ecx, eax
nop dword [eax]
mov si, word [ecx]
cmp si, word [edx]
jne 0x50c116
test si, si
je 0x50c112
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x50c116
add ecx, 4
add edx, 4
test si, si
jne 0x50c0f0
xor esi, esi
jmp 0x50c11b
sbb esi, esi
or esi, 1
lea edx, [eax - 0x10]
mov byte [ebp - 4], 8
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x50c136
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x50c14c
push 1
push 0x5c692c
lea ecx, [ebp - 0x1ea4]
call fcn.00405fe0
mov eax, dword [0x6184f0]
mov esi, dword [ebp - 0x1e90]
mov eax, dword [eax + 8]
cmp dword [eax + 0x3d4], 0
ja 0x50c172
mov ecx, dword [0x6184f4]
push esi
mov ecx, dword [ecx + 4]
call fcn.005088e0
push esi
lea ecx, [ebp - 0x1ea0]
call fcn.00403320
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x1ea0]
mov esi, dword [eax - 0xc]
cmp esi, 1
jg 0x50c19d
lea ecx, [eax - 0x10]
call fcn.00403af0
add eax, 0x10
jmp 0x50c1da
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x50c1ad
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x50c1b9
call fcn.00550b4e
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
mov eax, dword [ebp - 0x1ea0]
lea ecx, [ebp - 0x1e8c]
push 1
lea eax, [eax + esi*2]
add eax, 0xfffffffe
push eax
call fcn.00403d50
mov eax, dword [ebp - 0x1e8c]
mov edx, 0x5c692c
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x50c207
test si, si
je 0x50c203
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x50c207
add ecx, 4
add edx, 4
test si, si
jne 0x50c1e1
xor esi, esi
jmp 0x50c20c
sbb esi, esi
or esi, 1
lea edx, [eax - 0x10]
mov byte [ebp - 4], 0xa
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x50c227
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x50c23d
push 1
push 0x5c692c
lea ecx, [ebp - 0x1ea0]
call fcn.00405fe0
push dword [ebp - 0x1ea0]
push dword [ebp - 0x1e90]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0x1e90]
call fcn.00470b20
lea ecx, [ebp - 0x1ec0]
mov byte [ebp - 4], 0xc
call fcn.00475e00
mov byte [ebp - 4], 0xd
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x50c91a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1e98], eax
lea eax, [ebp - 0xe28]
mov byte [ebp - 4], 0xe
test eax, 0xffff0000
jne 0x50c2ac
movzx eax, ax
lea ecx, [ebp - 0x1e98]
push eax
call fcn.00403020
jmp 0x50c2d7
lea ecx, [ebp - 0xe28]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50c2b5
sub ecx, edx
lea eax, [ebp - 0xe28]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1e98]
call fcn.00403bb0
mov byte [ebp - 4], 0xf
xor eax, eax
mov esi, dword [ebp - 0x1e98]
mov dword [ebp - 0x1ea8], eax
mov ecx, dword [esi - 0xc]
test ecx, ecx
jle 0x50c731
test eax, eax
js 0x50c314
cmp eax, ecx
jge 0x50c314
lea eax, [esi + eax*2]
push 0x2f
push eax
call fcn.00570b1c
add esp, 8
test eax, eax
je 0x50c314
sub eax, esi
sar eax, 1
jmp 0x50c317
or eax, 0xffffffff
mov dword [ebp - 0x1eac], eax
test eax, eax
js 0x50c731
mov ecx, dword [ebp - 0x1ea0]
lea ecx, [ecx - 0x10]
call fcn.00403af0
add eax, 0x10
mov dword [ebp - 0x1eb4], eax
mov eax, dword [ebp - 0x1eac]
lea ecx, [ebp - 0x1e98]
mov esi, dword [ebp - 0x1ea8]
sub eax, esi
push eax
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x1e8c], eax
lea eax, [ebp - 0x1ec8]
push esi
push eax
call fcn.0041d2b0
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x1eb4]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00405fe0
mov byte [ebp - 4], 0x10
mov eax, ebx
mov edx, dword [ebp - 0x1ec8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x50c39e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x1e9c]
lea ecx, [ecx - 0x10]
call fcn.00403af0
add eax, 0x10
mov dword [ebp - 0x1e94], eax
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x1ecc]
push dword [ebp - 0x1e8c]
lea ecx, [ebp - 0x1e98]
push esi
push eax
call fcn.0041d2b0
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x1e94]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00405fe0
mov byte [ebp - 4], 0x12
mov eax, ebx
mov edx, dword [ebp - 0x1ecc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x50c408
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x1eb4]
lea eax, [ebp - 0x1e50]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0x1e94]
lea eax, [ebp - 0x1a3c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
lea ecx, [ebp - 0x1eb0]
mov word [ebp - 0x628], ax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x628]
push 1
push eax
lea eax, [ebp - 0x1e50]
push eax
call fcn.0046d300
push 1
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x1a3c]
push eax
lea ecx, [ebp - 0x1eb0]
call fcn.0046d300
cmp word [ebp - 0x420], 0
je 0x50c4a0
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x1ec0]
call fcn.004764e0
test eax, eax
js 0x50c6d7
mov eax, dword [0x608f30]
cmp eax, 0x608f30
je 0x50c515
test byte [eax + 0x1c], 4
je 0x50c515
mov eax, dword [ebp - 0x1e94]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x50c4e3
push 0x104
lea ecx, [ebp - 0x1e94]
call fcn.00403b50
mov eax, dword [ebp - 0x1e94]
cmp dword [0x608f68], 8
mov ecx, 0x608f54
push eax
mov eax, dword [0x608f30]
mov edx, 0x5dd3a8
cmovae ecx, dword [0x608f54]
push ecx
mov ecx, 0x22
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00405920
add esp, 0x10
cmp word [ebp - 0x420], 0
je 0x50c577
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x1ec0]
call fcn.004764e0
test eax, eax
js 0x50c577
cmp dword [ebp - 0x1ebc], 0
jne 0x50c577
push str.SPOOLER
lea ecx, [ebp - 0x1e90]
call fcn.00474b30
mov ecx, dword [0x6184f0]
push 0x5c79bc
push str.FIRST_SPOOLER_STOP
mov ecx, dword [ecx + 0x1c]
call fcn.004f6860
mov dword [ebp - 0x1ebc], 1
push dword [ebp - 0x1e8c]
lea eax, [ebp - 0x1ed4]
push dword [ebp - 0x1ea8]
lea ecx, [ebp - 0x1e98]
push eax
call fcn.0041d2b0
push eax
lea edx, [ebp - 0x1e9c]
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x1ed0]
call fcn.00437b70
add esp, 4
mov byte [ebp - 4], 0x15
lea ecx, [edi - 0x10]
mov edx, dword [eax]
mov dword [ebp - 0x1ea8], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x1e8c], eax
cmp eax, ecx
je 0x50c629
cmp dword [ecx + 0xc], 0
lea edi, [ecx + 0xc]
jl 0x50c614
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x50c614
mov ecx, dword [ebp - 0x1e8c]
call fcn.00403af0
mov dword [ebp - 0x1e8c], eax
mov ecx, ebx
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x50c609
mov edi, dword [ebp - 0x1ea8]
push edi
mov ecx, dword [edi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1e8c]
lea edi, [eax + 0x10]
mov dword [ebp - 0x1eb8], edi
jmp 0x50c629
push dword [edx - 0xc]
lea ecx, [ebp - 0x1eb8]
push edx
call fcn.00403bb0
mov edi, dword [ebp - 0x1eb8]
mov byte [ebp - 4], 0x14
mov eax, ebx
mov edx, dword [ebp - 0x1ed0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x50c64a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x12
mov eax, ebx
mov edx, dword [ebp - 0x1ed4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x50c66b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x50c6ac
test byte [ecx + 0x1c], 4
je 0x50c6ac
cmp dword [0x608f68], 8
mov eax, 0x608f54
push edi
cmovae eax, dword [0x608f54]
mov edx, 0x5dd3a8
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x23
call fcn.00405920
add esp, 0x10
push 0x20
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor ebx, ebx
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
je 0x50c6d4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x64
jl 0x50c6b7
or ebx, 0xffffffff
mov byte [ebp - 4], 0x10
mov eax, ebx
mov edx, dword [ebp - 0x1e94]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x50c6f8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov byte [ebp - 4], 0xf
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x50c713
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x1e98]
mov eax, dword [ebp - 0x1eac]
inc eax
mov dword [ebp - 0x1ea8], eax
mov ecx, dword [esi - 0xc]
cmp eax, ecx
jl 0x50c2f4
push 0x800
lea eax, [ebp - 0x1628]
push 0
push eax
call fcn.00571c00
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0x1628]
add esp, 0xc
mov ecx, dword [ecx + 0x1c]
push eax
push str.FIRST_SPOOLER_STOP
call fcn.004f65f0
cmp dword [ebp - 0x1ebc], 1
jne 0x50c77c
push str.SPOOLER
lea ecx, [ebp - 0x1e90]
call fcn.004748a0
jmp 0x50c7a2
push 0x5c79bc
lea eax, [ebp - 0x1628]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x50c7a2
push str.Canon_Driver_Information_Assist_Service
lea ecx, [ebp - 0x1e90]
call fcn.00474b30
mov byte [ebp - 0x1e84], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x50c7eb
test byte [ecx + 0x1c], 1
je 0x50c7eb
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 1
cmovae eax, dword [0x608f54]
mov edx, 0x5dd3a8
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x25
call fcn.004018a0
add esp, 0x10
mov byte [ebp - 4], 0xd
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x50c806
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x1ec0]
call fcn.00475ed0
lea ecx, [ebp - 0x1e90]
call fcn.00470bf0
mov byte [ebp - 4], 8
mov eax, ebx
mov edx, dword [ebp - 0x1ea0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x50c83d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov eax, ebx
mov edx, dword [ebp - 0x1ea4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x50c85e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x1eb0]
call fcn.0046a3c0
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x1e9c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x50c88a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x1ec4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x50c8ab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x50c8c4
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x1e88]
call fcn.0040a570
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.004013a0
push 0x80004005
call fcn.004013a0
push 0x80004005
call fcn.004013a0
push 0x80004005
call fcn.004013a0
push 0x80004005
call fcn.004013a0
int3