Function at 0x10185de0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10353c5d
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 0xc8], eax
push esi
push edi
mov eax, dword [0x105be7d0]
xor eax, esp
push eax
lea eax, [esp + 0xdc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0xec]
mov dword [esp + 0x2c], esi
call fcn.1017f5a0
mov ecx, eax
call fcn.1017f6f0
mov dword [esp + 0x50], eax
test eax, eax
je 0x10186a91
mov ecx, dword [edi + 0xf4]
cmp ecx, dword [edi + 0xf8]
jne 0x10185e5e
mov dword [esi + 4], 0
mov dword [esi], 0
jmp 0x10186a91
cmp dword [edi + 0xec], 0
je 0x10185e86
cmp dword [edi + 0xf0], 0
je 0x10185e86
mov eax, dword [edi + 0xec]
mov dword [esi], eax
mov eax, dword [edi + 0xf0]
mov dword [esi + 4], eax
jmp 0x10186a91
lea eax, [edi + 0xc4]
xorps xmm0, xmm0
push 1
push eax
movdqu xmmword [esp + 0xc0], xmm0
call dword [sym.imp.USER32.dll_MonitorFromRect]
mov dword [esp + 0x80], 0x28
xorps xmm0, xmm0
mov dword [esp + 0xa4], 0
movdqu xmmword [esp + 0x84], xmm0
movdqu xmmword [esp + 0x94], xmm0
test eax, eax
je 0x10185ef7
lea ecx, [esp + 0x80]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
test eax, eax
je 0x10185ef7
movdqu xmm0, xmmword [esp + 0x94]
movdqu xmmword [esp + 0xb8], xmm0
jmp 0x10185f0b
push 0
lea eax, [esp + 0xbc]
push eax
push 0x10
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [esp + 0xc0]
sub eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xc4]
mov esi, ecx
sub esi, dword [esp + 0xbc]
lea eax, [eax + eax*2]
cdq
and edx, 3
add eax, edx
sar eax, 2
cmp dword [edi + 0x28], 0
mov dword [esp + 0x5c], eax
jne 0x10185fc5
mov eax, dword [esp + 0xbc]
add eax, ecx
cdq
sub eax, edx
lea edx, [edi + 0xc4]
sar eax, 1
push edx
mov dword [esp + 0xd4], eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x10185fc5
mov edx, dword [edi + 0xd0]
mov eax, dword [esp + 0xd0]
cmp edx, eax
jg 0x10185f85
mov esi, dword [esp + 0xc4]
sub esi, edx
jmp 0x10185fc5
mov esi, dword [edi + 0xc8]
cmp esi, eax
jle 0x10185f98
sub esi, dword [esp + 0xbc]
jmp 0x10185fc5
sub esi, dword [esp + 0xbc]
lea eax, [esp + 0xd0]
mov ecx, dword [esp + 0xc4]
sub ecx, edx
mov dword [esp + 0xd0], esi
cmp ecx, esi
mov dword [esp + 0x54], ecx
lea edx, [esp + 0x54]
cmovge eax, edx
mov esi, dword [eax]
mov eax, dword [esp + 0xc0]
add eax, dword [esp + 0xb8]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0xd0], eax
lea eax, [edi + 0xc4]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x1018603c
mov ecx, dword [edi + 0xcc]
mov eax, dword [esp + 0xd0]
cmp ecx, eax
jg 0x10186010
mov eax, dword [esp + 0xc0]
sub eax, ecx
mov dword [esp + 0x5c], eax
jmp 0x1018603c
mov edx, dword [edi + 0xc4]
cmp edx, eax
jle 0x10186023
sub edx, dword [esp + 0xb8]
jmp 0x10186038
mov eax, dword [esp + 0xc0]
sub edx, dword [esp + 0xb8]
sub eax, ecx
cmp eax, edx
cmovg edx, eax
mov dword [esp + 0x5c], edx
mov ecx, dword [esp + 0x50]
lea edx, [esp + 0xa8]
xorps xmm0, xmm0
movdqu xmmword [esp + 0xa8], xmm0
push edx
movdqu xmmword [esp + 0x6c], xmm0
mov eax, dword [ecx]
call dword [eax + 0xfc]
mov eax, dword [esp + 0xb4]
lea ecx, [esp + 0x60]
add eax, dword [esp + 0xac]
sub esi, eax
mov dword [esp + 0x60], 0
mov eax, dword [esp + 0xb0]
add eax, dword [esp + 0xa8]
sub dword [esp + 0x5c], eax
mov dword [esp + 0x58], esi
mov esi, dword [esp + 0x50]
push ecx
mov ecx, esi
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
call eax
test al, al
je 0x101860b2
mov eax, dword [esi]
lea ecx, [esp + 0x68]
push ecx
mov ecx, esi
call dword [eax + 0x3c]
mov edx, dword [esp + 0x6c]
mov esi, dword [esp + 0x74]
mov eax, dword [esp + 0x50]
lea ecx, [esi + edx]
sub dword [esp + 0x58], ecx
lea ecx, [esi + edx]
mov edx, dword [eax]
sub dword [esp + 0x5c], ecx
mov ecx, eax
mov edx, dword [edx + 0x84]
call edx
mov ecx, eax
mov eax, dword [esp + 0x58]
cdq
idiv ecx
mov ecx, dword [edi + 0xf8]
sub ecx, dword [edi + 0xf4]
sar ecx, 2
mov dword [esp + 0x30], eax
cmp eax, ecx
jl 0x1018611a
mov esi, dword [esp + 0x2c]
mov ecx, edi
push esi
call fcn.10185b40
mov eax, dword [esi]
mov dword [edi + 0xec], eax
mov eax, dword [esi + 4]
mov dword [edi + 0xf0], eax
jmp 0x10186a91
xorps xmm0, xmm0
mov dword [esp + 0x3c], 0
movq qword [esp + 0xc8], xmm0
mov dword [esp + 0x58], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
call fcn.100dc430
mov dword [esp + 0xc8], eax
mov dword [esp + 0xe4], 4
mov eax, dword [edi + 0xf8]
sub eax, dword [edi + 0xf4]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x44], 0
mov byte [esp + 0x38], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x34], 0
test eax, 0xfffffffc
jle 0x10186457
xor edx, edx
xor eax, eax
mov dword [esp + 0x4c], 0
xor esi, esi
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], eax
mov byte [esp + 0x38], al
mov dword [esp + 0x40], esi
cmp dword [esp + 0x30], eax
jle 0x101862b9
shl edx, 2
mov dword [esp + 0x40], edx
jmp 0x101861e0
mov ecx, dword [edi + 0xf8]
sub ecx, dword [edi + 0xf4]
mov eax, dword [esp + 0x3c]
sar ecx, 2
add eax, esi
cmp eax, ecx
jge 0x101862b1
mov eax, dword [edi + 0xf4]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
push ecx
mov eax, dword [edx + eax]
mov ecx, eax
mov dword [esp + 0xd8], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call fcn.10188a00
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x4c]
jle 0x1018625e
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x54]
dec eax
cmp esi, eax
mov dword [esp + 0x4c], ecx
cmovne edx, ecx
mov dword [esp + 0x54], edx
mov ecx, dword [esp + 0x44]
cmp dword [esp + 0x24], ecx
mov eax, dword [esp + 0xd0]
cmovg ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x44], ecx
cmp dword [eax + 0x34], 0
mov eax, 1
mov ecx, dword [esp + 0x38]
movzx ecx, cl
cmovne ecx, eax
mov eax, dword [esp + 0x48]
add eax, dword [esp + 0x18]
inc esi
add edx, 4
mov dword [esp + 0x38], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x40], edx
cmp esi, dword [esp + 0x30]
jl 0x101861e0
jmp 0x101862b5
mov eax, dword [esp + 0x48]
mov dword [esp + 0x40], esi
mov ecx, dword [esp + 0x2c]
cmp eax, dword [ecx + 4]
jle 0x101862c5
mov dword [ecx + 4], eax
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx]
mov eax, dword [eax + 0x13c]
call eax
mov esi, eax
mov eax, dword [esp + 0x50]
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 0x8c]
call edx
add esi, dword [esp + 0x44]
mov ecx, dword [edi + 0x70]
add eax, esi
mov esi, eax
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x4c]
add esi, eax
test ecx, ecx
jle 0x1018632c
cmp eax, ecx
jle 0x1018632c
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx]
mov eax, dword [eax + 0x13c]
call eax
mov ecx, dword [esp + 0x50]
mov esi, eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x8c]
call eax
add esi, eax
add esi, dword [edi + 0x70]
add esi, dword [esp + 0x44]
mov eax, dword [edi + 0x74]
test eax, eax
jle 0x10186338
cmp esi, eax
cmovl esi, eax
cmp byte [esp + 0x38], 0
je 0x1018634f
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx]
mov eax, dword [eax + 0x148]
call eax
add esi, eax
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x3c]
lea eax, [esi + ecx]
cmp eax, dword [esp + 0x5c]
jle 0x10186368
test edx, edx
jne 0x10186459
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
cmp ecx, eax
jne 0x10186430
add eax, edx
mov dword [esp + 0x48], eax
mov eax, dword [edi + 0xf8]
sub eax, dword [edi + 0xf4]
sar eax, 2
cmp dword [esp + 0x48], eax
jge 0x10186430
push 0
push 0
push ecx
mov ecx, edi
call fcn.101815e0
mov dword [esp + 0xd0], eax
test eax, eax
je 0x10186428
or dword [eax + 0x18], 4
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0
push ecx
mov ecx, eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.10188a00
mov eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0x4c]
mov dword [eax + 0x24], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 0x28], ecx
lea ecx, [esp + 0xc8]
mov dword [eax + 0x20], esi
mov eax, dword [esp + 0x48]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x48]
push eax
call fcn.101876a0
mov ecx, dword [esp + 0xd0]
add esi, 3
mov dword [eax], ecx
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov eax, dword [edi + 0xf8]
add edx, ecx
sub eax, dword [edi + 0xf4]
add dword [esp + 0x58], esi
sar eax, 2
mov dword [esp + 0x3c], edx
cmp edx, eax
jl 0x101861a1
mov ecx, dword [esp + 0x58]
jmp 0x10186459
xor ecx, ecx
mov eax, dword [esp + 0x2c]
mov dword [eax], ecx
mov eax, dword [edi + 0xf8]
sub eax, dword [edi + 0xf4]
sar eax, 2
cmp dword [esp + 0x3c], eax
jge 0x101868ef
call fcn.1017f660
push dword [edi + 0xbc]
mov esi, eax
mov ecx, esi
mov dword [esp + 0x50], esi
mov edx, dword [esi]
call dword [edx + 0x120]
mov edx, dword [esp + 0xc8]
xor eax, eax
mov dword [esp + 0x58], eax
mov ecx, dword [edx]
mov dword [esp + 0xd0], ecx
cmp ecx, edx
je 0x10186500
lea ecx, [ecx]
mov esi, dword [ecx + 0x10]
push dword [ecx + 0x14]
add esi, eax
mov ecx, edi
push esi
call fcn.10185730
mov eax, dword [edi + 0x20]
test eax, eax
je 0x101864d8
push 0
push 0
push 0x420
push esi
push eax
call dword [sym.imp.USER32.dll_InsertMenuW]
inc dword [esp + 0x58]
lea ecx, [esp + 0xd0]
call fcn.100d0740
mov ecx, dword [esp + 0xd0]
mov eax, dword [esp + 0x58]
cmp ecx, dword [esp + 0xc8]
jne 0x101864b0
mov esi, dword [esp + 0x4c]
add dword [edi + 0x68], eax
mov ecx, dword [esp + 0x3c]
dec ecx
add eax, ecx
mov dword [esp + 0x5c], eax
dec eax
mov ecx, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], eax
mov eax, dword [edi + 0xf8]
sub eax, dword [edi + 0xf4]
sar eax, 2
cmp ecx, eax
jge 0x1018661f
mov eax, dword [esp + 0x4c]
add esi, 0xf4
add eax, 0xd4
mov dword [esp + 0xd0], eax
jmp 0x10186550
mov eax, dword [edi + 0xf4]
push dword [esp + 0xd0]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x58], eax
mov dword [esp + 0x68], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 4]
lea eax, [esp + 0x64]
cmp eax, ecx
jae 0x101865bb
mov edx, dword [esi]
cmp edx, eax
ja 0x101865bb
sub eax, edx
sar eax, 2
mov dword [esp + 0x58], eax
cmp ecx, dword [esi + 8]
jne 0x10186595
push ecx
mov ecx, esi
call fcn.10187720
mov ecx, dword [esp + 0x58]
mov eax, dword [esi]
lea eax, [eax + ecx*4]
mov ecx, dword [esi + 4]
mov byte [esp + 0xe4], 9
test ecx, ecx
je 0x101865b1
mov eax, dword [eax]
mov dword [ecx], eax
mov byte [esp + 0xe4], 4
jmp 0x101865d5
cmp ecx, dword [esi + 8]
jne 0x101865c8
push ecx
mov ecx, esi
call fcn.10187720
mov eax, dword [esi + 4]
test eax, eax
je 0x101865d5
mov ecx, dword [esp + 0x54]
mov dword [eax], ecx
push dword [esp + 0xd0]
add dword [esi + 4], 4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x4c]
mov dword [ecx + 0x30], edx
mov eax, dword [edx + 0xbc]
mov dword [ecx + 0x45c], eax
mov eax, dword [edi + 0xf8]
mov ecx, dword [esp + 0x48]
sub eax, dword [edi + 0xf4]
inc ecx
sar eax, 2
mov dword [esp + 0x48], ecx
cmp ecx, eax
jl 0x10186550
jmp 0x10186623
mov edx, dword [esp + 0x4c]
mov eax, dword [edx]
mov ecx, edx
mov word [edx + 0x7d], 0x100
push dword [edi + 0x64]
call dword [eax + 0xcc]
mov eax, dword [edi]
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x4c]
dec ecx
push 0x1055fb74
mov eax, dword [eax + 0x18]
push esi
push ecx
mov ecx, edi
call eax
test al, al
je 0x10186a38
cmp dword [edi + 0x24], 0
jne 0x10186666
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov dword [edi + 0x24], eax
mov eax, dword [edi + 0x24]
mov dword [esi + 0x20], eax
lea eax, [edi + 0xd4]
push eax
mov dword [esp + 0xd4], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0xf8]
sub eax, dword [edi + 0xf4]
mov ecx, dword [esp + 0x5c]
sar eax, 2
inc ecx
cmp ecx, eax
jae 0x101866ac
mov eax, dword [edi + 0xf4]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0xd0], eax
lea eax, [edi + 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0xd0]
mov eax, dword [ecx + 0x18]
shr eax, 2
test al, 1
je 0x101866e4
mov ecx, dword [esp + 0x5c]
mov eax, dword [edi]
inc ecx
push 1
push ecx
mov ecx, edi
call dword [eax + 0x38]
mov eax, dword [esi]
mov ecx, esi
push 1
push 1
call dword [eax + 0x38]
mov esi, dword [edi + 0x20]
test esi, esi
je 0x101867e1
push 0x2c
lea eax, [esp + 0x80]
mov dword [esp + 0x7c], 0x30
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [esp + 0x7c], 0x140
lea eax, [esp + 0x78]
push eax
push 1
push dword [esp + 0x64]
push esi
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test eax, eax
je 0x1018674d
mov eax, dword [esp + 0x80]
test al, 0x60
jne 0x1018673b
test eax, 0x800
je 0x1018674d
push 0x400
push dword [esp + 0x60]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_DeleteMenu]
mov eax, dword [esp + 0x5c]
push 0x1055fb74
push dword [edi + 0x24]
dec eax
push 0x410
push eax
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_InsertMenuW]
test eax, eax
je 0x101867e1
push dword [edi + 0x20]
mov esi, dword [esp + 0x60]
mov dword [esp + 0x80], 0x1e3
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp esi, eax
jae 0x101867e1
lea esp, [esp]
lea eax, [esp + 0x78]
push eax
push 1
push esi
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test eax, eax
je 0x101867d3
push 0
push 0
push 0
push dword [edi + 0x24]
call dword [sym.imp.USER32.dll_AppendMenuW]
test eax, eax
je 0x101867d3
push dword [edi + 0x24]
call dword [sym.imp.USER32.dll_GetMenuItemCount]
lea ecx, [esp + 0x78]
dec eax
push ecx
push 1
push eax
push dword [edi + 0x24]
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
push dword [edi + 0x20]
inc esi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp esi, eax
jb 0x10186790
mov eax, dword [esp + 0x5c]
xor esi, esi
mov dword [edi + 0x60], eax
lea eax, [edi + 0xd4]
push eax
mov dword [esp + 0xd4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0xf8]
sub eax, dword [edi + 0xf4]
mov ecx, dword [esp + 0x40]
sar eax, 2
cmp ecx, eax
jae 0x10186825
mov eax, dword [edi + 0xf4]
mov esi, dword [eax + ecx*4]
mov dword [esp + 0xd0], esi
lea eax, [edi + 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x10186a38
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], 0
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], 0
push eax
mov ecx, esi
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call fcn.10188a00
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x24], ecx
cmovg ecx, dword [esp + 0x24]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx]
mov eax, dword [eax + 0x13c]
call eax
mov esi, eax
mov eax, dword [esp + 0x50]
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 0x8c]
call edx
add esi, dword [esp + 0x34]
lea ecx, [esi + eax]
mov esi, dword [esp + 0x44]
add ecx, esi
cmp byte [esp + 0x38], 0
mov dword [esp + 0x54], ecx
jne 0x101868c8
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx]
mov eax, dword [eax + 0x148]
call eax
mov ecx, dword [esp + 0x54]
add ecx, eax
mov eax, dword [esp + 0xd0]
mov dword [eax + 0x20], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], esi
mov ecx, dword [edi + 0x64]
test ecx, ecx
je 0x10186a38
mov dword [eax + 8], ecx
jmp 0x10186a38
mov eax, dword [esp + 0xc8]
xor ecx, ecx
mov dword [esp + 0xd0], ecx
mov esi, dword [eax]
cmp esi, eax
je 0x10186970
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
add eax, ecx
mov ecx, edi
push eax
call fcn.10185730
mov ecx, dword [esp + 0xd0]
inc ecx
cmp byte [esi + 0xd], 0
mov dword [esp + 0xd0], ecx
jne 0x10186967
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x1018694c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x10186967
lea ecx, [ecx]
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x10186940
jmp 0x10186967
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10186965
cmp esi, dword [eax + 8]
jne 0x10186965
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10186955
mov esi, eax
cmp esi, dword [esp + 0xc8]
jne 0x10186905
add dword [edi + 0x68], ecx
xor esi, esi
mov eax, dword [edi + 0xf8]
sub eax, dword [edi + 0xf4]
sar eax, 2
mov dword [edi + 0x60], eax
dec eax
mov dword [esp + 0x54], eax
lea eax, [edi + 0xd4]
push eax
mov dword [esp + 0xd4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0xf8]
sub eax, dword [edi + 0xf4]
mov ecx, dword [esp + 0x54]
sar eax, 2
cmp ecx, eax
jae 0x101869c7
mov eax, dword [edi + 0xf4]
mov esi, dword [eax + ecx*4]
mov dword [esp + 0xd0], esi
lea eax, [edi + 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x10186a38
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx]
mov eax, dword [eax + 0x13c]
call eax
mov esi, eax
mov eax, dword [esp + 0x50]
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 0x8c]
call edx
add esi, dword [esp + 0x44]
lea ecx, [esi + eax]
mov esi, dword [esp + 0x4c]
add ecx, esi
cmp byte [esp + 0x38], 0
mov dword [esp + 0x54], ecx
je 0x10186a24
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx]
mov eax, dword [eax + 0x148]
call eax
mov ecx, dword [esp + 0x54]
add ecx, eax
mov eax, dword [esp + 0xd0]
mov dword [eax + 0x20], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 0x24], esi
mov dword [eax + 0x28], ecx
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
mov dword [edi + 0xec], eax
mov eax, dword [ecx + 4]
mov dword [edi + 0xf0], eax
mov dword [esp + 0xe4], 0xb
lea ecx, [esp + 0xc8]
mov eax, dword [esp + 0xc8]
push eax
push dword [eax]
lea eax, [esp + 0xd8]
push eax
call fcn.10151040
mov dword [esp + 0xe4], 0xffffffff
push dword [esp + 0xc8]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [esp + 0xdc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.1033d458
add esp, 0xdc
ret 4