Function at 0x101ad040
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
push edi
lea edi, [ecx + 4]
mov dword [ebp - 0x210], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x284], edi
test edi, edi
je 0x101ad094
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x214]
push dword [eax + 4]
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x290], 0
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x288], 0
call fcn.10002490
push str.DirectoryBackground
push esi
call sub.msvcrt.dll__wcsicmp
add esp, 8
test eax, eax
je 0x101ad10b
push str.Directory
push esi
call sub.msvcrt.dll__wcsicmp
add esp, 8
test eax, eax
je 0x101ad10b
mov ecx, dword [ebp - 0x240]
push esi
push dword [ebp - 0x210]
call fcn.100615f0
mov dword [ebp - 0x238], eax
jmp 0x101ad2b9
mov eax, dword [ebp + 0x18]
cmp dword [eax - 0xc], 0
jne 0x101ad124
mov esi, dword [ebp - 0x21c]
mov ebx, 1
jmp 0x101add08
mov edi, dword [ebp - 0x21c]
mov ecx, dword [edi - 0x10]
test ecx, ecx
je 0x101ad13a
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x101ad146
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov ebx, dword [edi - 0xc]
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov dword [ebp - 0x210], ebx
lea esi, [eax + 0x10]
mov eax, dword [esi - 8]
lea edx, [ebx + 1]
sub eax, edx
mov dword [ebp - 0x220], esi
or ecx, eax
jge 0x101ad185
push edx
lea ecx, [ebp - 0x220]
call fcn.10003310
mov esi, dword [ebp - 0x220]
add ebx, ebx
push ebx
push edi
push ebx
push esi
call fcn.10004510
lea ecx, [ebx + esi]
add esp, 0x10
test ecx, ecx
jne 0x101ad1ac
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
call fcn.101e6c20
jmp 0x101ad1b5
mov ax, word [0x10202944]
mov word [ecx], ax
mov eax, dword [ebp - 0x210]
xor ecx, ecx
inc eax
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov ecx, dword [esi - 0x10]
test ecx, ecx
je 0x101ad1d5
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x101ad1e1
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov ebx, dword [esi - 0xc]
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov dword [ebp - 0x244], ebx
lea edi, [eax + 0x10]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x220], edi
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x218], eax
lea edx, [ebx + eax]
mov eax, dword [edi - 8]
sub eax, edx
or ecx, eax
jge 0x101ad232
push edx
lea ecx, [ebp - 0x220]
call fcn.10003310
mov edi, dword [ebp - 0x220]
add ebx, ebx
push ebx
push esi
push ebx
push edi
call fcn.10004510
mov eax, dword [ebp - 0x218]
add eax, eax
push eax
push dword [ebp - 0x210]
push eax
lea eax, [ebx + edi]
push eax
call fcn.10004510
mov eax, dword [ebp - 0x244]
xor ecx, ecx
add eax, dword [ebp - 0x218]
add esp, 0x20
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call fcn.10002790
or ebx, 0xffffffff
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x101ad29a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
lea edx, [esi - 0x10]
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101ad2b1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x224]
xor eax, eax
test eax, eax
je 0x101adb32
mov esi, dword [ebp - 0x21c]
mov edi, dword [ebp - 0x214]
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0xffffffff
test ebx, ebx
je 0x101ad2ff
mov eax, dword [ebx]
push 0
push 0x100
push esi
push dword [edi]
push ebx
call dword [eax + 0x10]
call fcn.10009c50
test eax, eax
je 0x101ad31c
test ebx, ebx
je 0x101ad31c
mov eax, dword [ebx]
push 0
push 0x200
push esi
push dword [edi]
push ebx
call dword [eax + 0x10]
call fcn.10009c50
test eax, eax
je 0x101ad3ba
push 0x2021f
push 0x10202940
push dword [edi]
lea ecx, [ebp - 0x234]
call fcn.10058810
test eax, eax
jne 0x101ad3ba
push esi
lea ecx, [ebp - 0x234]
call fcn.100588d0
test ebx, ebx
je 0x101ad364
mov eax, dword [ebx]
push 0
push 0x200
push esi
push dword [edi]
push ebx
call dword [eax + 0x18]
mov eax, dword [ebp - 0x238]
mov ecx, dword [eax + 4]
mov edi, dword [eax]
sub ecx, edi
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x101ad3ba
test byte [edi + 0x20], 1
je 0x101ad3ba
mov ecx, dword [ebp - 0x214]
mov edi, dword [ecx]
lea ecx, [ebp - 0x234]
call fcn.10008220
push 0
push 0
push 0x2021f
push 0
push 0
push esi
lea eax, [ebp - 0x234]
push edi
push eax
mov ecx, eax
call fcn.10061800
mov edi, dword [ebp - 0x214]
lea ecx, [ebp - 0x234]
push 0x2011f
push 0x10202940
push dword [edi]
call fcn.10058810
test eax, eax
jne 0x101ad456
push esi
lea ecx, [ebp - 0x234]
call fcn.100588d0
test ebx, ebx
je 0x101ad3fb
mov ecx, dword [ebx]
push 0
push 0x100
push esi
push dword [edi]
push ebx
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x238]
mov ecx, dword [eax + 4]
mov edi, dword [eax]
sub ecx, edi
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x101ad456
mov eax, dword [edi + 0x20]
test eax, eax
je 0x101ad426
test al, 2
je 0x101ad456
mov ecx, dword [ebp - 0x214]
mov edi, dword [ecx]
lea ecx, [ebp - 0x234]
call fcn.10008220
push 0
push 0
push 0x2011f
push 0
push 0
push esi
lea eax, [ebp - 0x234]
push edi
push eax
mov ecx, eax
call fcn.10061800
add esi, 0xfffffff0
push esi
call fcn.10002a60
add esp, 4
lea ecx, [ebp - 0x218]
lea esi, [eax + 0x10]
push 1
lea eax, [ebp - 0x210]
mov dword [ebp - 0x220], esi
push eax
mov dword [ebp - 0x218], esi
call fcn.1000a000
mov ecx, 0x10202944
mov eax, dword [eax]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x101ad4b6
test dx, dx
je 0x101ad4b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x101ad4b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x101ad490
xor edi, edi
jmp 0x101ad4bb
sbb edi, edi
or edi, 1
mov edx, dword [ebp - 0x210]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101ad4db
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x101ad4fd
mov eax, dword [esi - 0xc]
lea ecx, [ebp - 0x218]
push 1
dec eax
push eax
call fcn.100056f0
mov esi, dword [ebp - 0x218]
mov dword [ebp - 0x220], esi
mov eax, dword [esi - 8]
mov ecx, 1
mov edi, dword [esi - 0xc]
sub eax, edi
sub ecx, dword [esi - 4]
or ecx, eax
jge 0x101ad529
push edi
lea ecx, [ebp - 0x218]
call fcn.10003310
mov esi, dword [ebp - 0x218]
mov dword [ebp - 0x220], esi
lea eax, [edi + 1]
push eax
push esi
call fcn.101ef780
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
add esp, 8
mov dword [ebp - 0x210], eax
mov eax, dword [ebp - 0x238]
mov esi, dword [eax]
cmp esi, dword [eax + 4]
je 0x101adade
mov eax, dword [esi + 4]
sub eax, 0x10
push eax
call fcn.10002a60
mov ebx, dword [eax + 4]
mov ecx, 1
sub ecx, dword [eax + 0xc]
add esp, 4
lea edi, [eax + 0x10]
mov eax, dword [edi - 8]
sub eax, ebx
mov dword [ebp - 0x224], edi
or ecx, eax
jge 0x101ad594
push ebx
lea ecx, [ebp - 0x224]
call fcn.10003310
mov edi, dword [ebp - 0x224]
lea eax, [ebx + 1]
push eax
push edi
call fcn.101ef780
xor eax, eax
mov dword [edi - 0xc], ebx
add esp, 8
mov word [edi + ebx*2], ax
cmp dword [edi - 0xc], eax
jl 0x101adaa9
push dword [ebp - 0x220]
push edi
call sub.msvcrt.dll_wcsstr
add esp, 8
test eax, eax
je 0x101adaa9
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x101adaa9
mov dword [ebp - 0x210], 1
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0xffffffff
call fcn.10009c50
mov ecx, dword [esi + 0x20]
test eax, eax
je 0x101ad983
test ecx, ecx
je 0x101ad61c
test cl, 2
je 0x101ad8b2
mov eax, dword [esi]
lea ecx, [ebp - 0x254]
mov ebx, dword [esi + 4]
mov dword [ebp - 0x224], eax
call fcn.10008220
push 0
push 0
push 0xf013f
push 0
push 0
push ebx
push dword [ebp - 0x224]
lea eax, [ebp - 0x254]
push eax
mov ecx, eax
call fcn.10061800
test eax, eax
je 0x101ad675
push 0x2011f
push dword [esi + 4]
lea ecx, [ebp - 0x254]
push dword [esi]
call fcn.10058810
test eax, eax
jne 0x101ad8b2
lea ecx, [ebp - 0x27c]
call fcn.101acfa0
mov eax, dword [esi]
mov dword [ebp - 0x27c], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x25c], eax
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x240]
mov dword [ebp - 0x278], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x264], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x270], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x274], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x268], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x26c], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x260], eax
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.101add70
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x224], eax
cmp eax, 0x10202940
je 0x101ad8b2
mov eax, dword [esi + 4]
mov ebx, dword [esi]
push 0x208
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...360DeskAna64.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x101ad8b2
cmp ebx, 0x80000000
jne 0x101ad774
mov ebx, str.HKCR
jmp 0x101ad7a3
cmp ebx, 0x80000001
jne 0x101ad783
mov ebx, 0x1020e8b4
jmp 0x101ad7a3
cmp ebx, reloc.OLEAUT32.dll_SysReAllocString
jne 0x101ad792
mov ebx, str.HKLM
jmp 0x101ad7a3
cmp ebx, 0x80000003
jne 0x101ad8b2
mov ebx, 0x1020e8cc
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
push dword [ebp - 0x224]
add eax, 0x10
push dword [ebp - 0x23c]
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x218]
push ebx
push str.setowner_reg__s___s____s_
push eax
call fcn.10002cb0
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x2c4], 0
mov dword [ebp - 0x2bc], eax
add esp, 0x14
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x2b8], eax
lea eax, [ebp - 0x2cc]
mov dword [ebp - 0x2b4], 0
push eax
mov dword [ebp - 0x2ac], 0
mov dword [ebp - 0x2a8], 0
mov dword [ebp - 0x2a4], 0
mov dword [ebp - 0x2a0], 0
mov dword [ebp - 0x29c], 0
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x2cc], 0x3c
mov dword [ebp - 0x2c8], 0x40
mov dword [ebp - 0x2c0], str.open
mov dword [ebp - 0x2b0], 0
call fcn.1009dfd0
test eax, eax
je 0x101ad894
push 0x1f4
push dword [ebp - 0x294]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x218]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101ad8b2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esi + 0x20], 1
je 0x101ada9e
mov eax, dword [esi]
lea ecx, [ebp - 0x254]
mov ebx, dword [esi + 4]
mov dword [ebp - 0x23c], eax
call fcn.10008220
push 0
push 0
push 0xf023f
push 0
push 0
push ebx
push dword [ebp - 0x23c]
lea eax, [ebp - 0x254]
push eax
mov ecx, eax
call fcn.10061800
test eax, eax
je 0x101ad915
push 0x2021f
push dword [esi + 4]
lea ecx, [ebp - 0x254]
push dword [esi]
call fcn.10058810
test eax, eax
jne 0x101ada9e
lea ecx, [ebp - 0x27c]
call fcn.101acfa0
lea eax, [ebp - 0x27c]
mov ecx, esi
push eax
call fcn.101acff0
mov ecx, dword [ebp - 0x240]
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.101add70
cmp dword [ebp - 0x258], 0x10202940
je 0x101ada9e
lea ecx, [ebp - 0x280]
call fcn.1001b8b0
push dword [ebp - 0x258]
lea ecx, [ebp - 0x280]
push dword [esi + 4]
push dword [esi]
call fcn.1001c5f0
lea ecx, [ebp - 0x280]
jmp 0x101ada99
test ecx, ecx
je 0x101ad990
test cl, 1
je 0x101ada9e
mov eax, dword [esi]
lea ecx, [ebp - 0x254]
mov ebx, dword [esi + 4]
mov dword [ebp - 0x23c], eax
call fcn.10008220
push 0
push 0
push 0xf003f
push 0
push 0
push ebx
push dword [ebp - 0x23c]
lea eax, [ebp - 0x254]
push eax
mov ecx, eax
call fcn.10061800
test eax, eax
je 0x101ad9e9
push 0x2001f
push dword [esi + 4]
lea ecx, [ebp - 0x254]
push dword [esi]
call fcn.10058810
test eax, eax
jne 0x101ada9e
lea ecx, [ebp - 0x27c]
call fcn.101acfa0
mov eax, dword [esi]
mov dword [ebp - 0x27c], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x25c], eax
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x240]
mov dword [ebp - 0x278], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x264], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x270], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x274], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x268], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x26c], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x260], eax
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.101add70
cmp dword [ebp - 0x258], 0x10202940
je 0x101ada9e
lea ecx, [ebp - 0x244]
call fcn.1001b8b0
push dword [ebp - 0x258]
lea ecx, [ebp - 0x244]
push dword [esi + 4]
push dword [esi]
call fcn.1001c5f0
lea ecx, [ebp - 0x244]
call fcn.1001b8c0
lea ecx, [ebp - 0x254]
call fcn.10008220
or ebx, 0xffffffff
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x101adac3
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x238]
add esi, 0x28
cmp esi, dword [eax + 4]
jne 0x101ad556
cmp dword [ebp - 0x210], 0
jne 0x101adafa
mov eax, dword [ebp - 0x214]
lea ecx, [ebp - 0x234]
mov esi, dword [ebp - 0x21c]
push esi
push dword [eax]
call fcn.10058720
jmp 0x101adb00
mov esi, dword [ebp - 0x21c]
mov edx, dword [ebp - 0x220]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101adb1d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x234]
call fcn.10008220
mov ebx, 1
jmp 0x101add02
mov ecx, dword [ebp - 0x214]
mov eax, dword [ecx + 8]
test eax, eax
je 0x101adc24
cmp word [eax], 0
je 0x101adc24
mov esi, dword [ebp - 0x21c]
xor edi, edi
push 0x2011f
push esi
push dword [ecx]
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0xffffffff
mov dword [ebp - 0x210], 0
call fcn.10058810
test eax, eax
jne 0x101adbce
test ebx, ebx
je 0x101adbaf
mov ecx, dword [ebp - 0x214]
mov eax, dword [ebx]
push edi
push dword [ecx + 8]
lea ecx, [ebp - 0x234]
push ecx
push ebx
call dword [eax + 0x2c]
mov eax, dword [ebp - 0x214]
lea ecx, [ebp - 0x234]
push dword [eax + 8]
call fcn.10060790
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x210], eax
mov eax, dword [ebp - 0x214]
lea ecx, [ebp - 0x234]
push 0x2021f
push esi
push dword [eax]
call fcn.10058810
test eax, eax
jne 0x101adce1
test ebx, ebx
je 0x101adc0b
mov ecx, dword [ebp - 0x214]
mov eax, dword [ebx]
push 0
push dword [ecx + 8]
lea ecx, [ebp - 0x234]
push ecx
push ebx
call dword [eax + 0x2c]
mov eax, dword [ebp - 0x214]
lea ecx, [ebp - 0x234]
push dword [eax + 8]
call fcn.10060790
jmp 0x101adcda
push 0x2011f
push 0x10202940
push dword [ecx]
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
xor edi, edi
mov dword [ebp - 0x22c], 0xffffffff
mov dword [ebp - 0x210], 0
call fcn.10058810
mov esi, dword [ebp - 0x21c]
test eax, eax
jne 0x101adc99
test ebx, ebx
je 0x101adc82
mov eax, dword [ebx]
lea ecx, [ebp - 0x234]
push edi
push esi
push ecx
push ebx
call dword [eax + 0x28]
push esi
lea ecx, [ebp - 0x234]
call fcn.100588d0
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x210], eax
mov eax, dword [ebp - 0x214]
lea ecx, [ebp - 0x234]
push 0x2021f
push 0x10202940
push dword [eax]
call fcn.10058810
test eax, eax
jne 0x101adce1
test ebx, ebx
je 0x101adcce
mov eax, dword [ebx]
lea ecx, [ebp - 0x234]
push 0
push esi
push ecx
push ebx
call dword [eax + 0x28]
push esi
lea ecx, [ebp - 0x234]
call fcn.100588d0
mov edi, eax
neg edi
sbb edi, edi
inc edi
cmp dword [ebp - 0x210], 0
jne 0x101adcf2
test edi, edi
jne 0x101adcf2
xor ebx, ebx
jmp 0x101adcf7
mov ebx, 1
lea ecx, [ebp - 0x234]
call fcn.10008220
mov edi, dword [ebp - 0x284]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x101add20
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x290]
call fcn.10140750
test edi, edi
je 0x101add36
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0x18]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x101add51
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 0x14