Function at 0x10051330
Capabilities:
Get graphical window text
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1005c00f
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push ebx
push esi
push edi
mov eax, dword [0x1006e020]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x218]
mov ecx, dword [0x10070828]
push eax
push 0x10070828
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
xor esi, esi
mov dword [esp + 0xb8], esi
mov edx, dword [ebx + 0x280]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x100513f9
mov eax, dword [ebx + 0x280]
push 0x400
lea edi, [ebx + 0x2a0]
push edi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [ebx + 0x280]
push eax
mov dword [esp + 0x90], edi
mov dword [esp + 0x80], esi
mov dword [esp + 0x94], 0x400
mov dword [esp + 0x78], 0xffffff50
mov dword [esp + 0x70], eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [esp + 0x6c]
push ecx
push esi
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [ebp + 0xc]
mov esi, dword [edi + 8]
cmp dword [edi + 4], esi
jbe 0x1005140a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
mov dword [esp + 0x14], eax
jbe 0x1005141c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x14]
push esi
push edi
push edx
push edi
lea eax, [esp + 0x68]
push eax
call fcn.10053740
xor edi, edi
add ebx, 0x228
mov dword [esp + 0x14], edi
mov dword [esp + 0x60], ebx
jmp 0x10051444
mov ebx, dword [esp + 0x60]
mov eax, dword [0x1006eb44]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
push 0
push edi
push ebx
lea esi, [esp + 0x1c]
mov byte [esp + 0xc4], 2
call fcn.100534c0
push 1
push edi
push ebx
lea esi, [esp + 0x24]
call fcn.100534c0
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], 0
je 0x10051497
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xaa4]
push eax
mov eax, ecx
push eax
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x10051502
mov eax, dword [esp + 0x18]
cmp dword [eax - 8], 0
je 0x100514bd
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0xaa8]
push ecx
push eax
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x10051502
mov eax, dword [esp + 0x18]
lea edx, [eax - 0xc]
cmp edx, 0x1006eb34
je 0x100514df
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100514df
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov byte [esp + 0xb8], 0
mov eax, dword [esp + 0x10]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x10051e5c
lea esi, [eax - 0xc]
jmp 0x10051e48
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], 0
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.MSVCR80.dll__wcsicmp]
je 0x10051526
mov eax, dword [edi + 0xaa4]
push eax
push ecx
call ebx
add esp, 8
test eax, eax
jne 0x10051543
mov esi, dword [esp + 0x18]
cmp dword [esi - 8], 0
je 0x10051547
mov eax, dword [edi + 0xaa8]
push eax
push esi
call ebx
add esp, 8
test eax, eax
je 0x10051547
jmp 0x10051579
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], 0
je 0x100515c9
mov eax, dword [edi + 0xaa4]
push eax
push ecx
call ebx
add esp, 8
test eax, eax
je 0x100515c9
cmp dword [esi - 8], 0
je 0x10051579
mov eax, dword [edi + 0xaa8]
push eax
push esi
call ebx
add esp, 8
test eax, eax
jne 0x100515c9
cmp byte [ebp + 0x10], 0
jne 0x10051e9a
add esi, 0xfffffff4
cmp esi, 0x1006eb34
je 0x100515a9
mov esi, dword [esp + 0x18]
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100515a9
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov byte [esp + 0xb8], 0
mov esi, dword [esp + 0x10]
lea edx, [esi - 0xc]
cmp edx, 0x1006eb34
je 0x10051e5c
jmp 0x10051e45
mov eax, dword [0x1006eb44]
mov ecx, str._:____
shr ecx, 0x10
mov dword [esp + 0x30], eax
jne 0x100515f0
mov edx, str._:____
movzx eax, dx
push eax
lea ecx, [esp + 0x34]
call fcn.10013a10
jmp 0x10051626
push str._:____
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x10051626
mov ecx, esi
lea edx, [esp + 0x30]
call fcn.10011c80
test eax, eax
je 0x10051626
mov ecx, dword [esp + 0x30]
lea eax, [esi + esi]
push eax
push str._:____
push ecx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov byte [esp + 0xb8], 3
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x10]
push edx
push edi
call dword [sym.imp.MSVCR80.dll_wcspbrk]
add esp, 8
test eax, eax
je 0x100516bf
sub eax, edi
sar eax, 1
js 0x100516bf
cmp byte [ebp + 0x10], 0
jne 0x10051f59
mov esi, dword [esp + 0x30]
lea eax, [esi - 0xc]
cmp eax, 0x1006eb34
je 0x1005167a
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1005167a
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov esi, dword [esp + 0x18]
lea ecx, [esi - 0xc]
cmp ecx, 0x1006eb34
je 0x100516a0
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100516a0
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
lea edx, [edi - 0xc]
cmp edx, 0x1006eb34
mov byte [esp + 0xb8], 0
je 0x10051e5c
lea esi, [edi - 0xc]
jmp 0x10051e48
mov edi, dword [ebp + 0xc]
mov eax, edi
mov byte [esp + 0x2f], 0
xor esi, esi
call fcn.10053690
test eax, eax
jbe 0x10051797
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x100516eb
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x100516f1
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x10]
lea eax, [eax + esi*8]
mov eax, dword [eax]
push ecx
push eax
call ebx
add esp, 8
test eax, eax
jne 0x1005170d
mov byte [esp + 0x2f], 1
mov eax, edi
add esi, 1
call fcn.10053690
cmp esi, eax
jb 0x100516d8
cmp byte [esp + 0x2f], 0
je 0x10051797
cmp byte [ebp + 0x10], 0
jne 0x100520bf
mov esi, dword [esp + 0x30]
lea edx, [esi - 0xc]
cmp edx, 0x1006eb34
je 0x10051752
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10051752
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov esi, dword [esp + 0x18]
lea eax, [esi - 0xc]
cmp eax, 0x1006eb34
je 0x10051777
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10051777
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov byte [esp + 0xb8], 0
mov esi, dword [esp + 0x10]
lea ecx, [esi - 0xc]
cmp ecx, 0x1006eb34
je 0x10051e5c
jmp 0x10051e45
xor esi, esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
push 1
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x20]
push 0x10061808
push eax
mov byte [esp + 0xc8], 8
call fcn.1004ad60
add esp, 0x10
mov dword [esp + 0x28], esi
lea ebx, [ebx]
mov esi, dword [esp + 0x38]
test esi, esi
je 0x10051b63
mov eax, dword [esp + 0x3c]
sub eax, esi
sar eax, 2
cmp dword [esp + 0x28], eax
jae 0x10051b63
mov ecx, dword [0x1006eb44]
mov ebx, ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x44], ecx
mov edi, dword [esp + 0x28]
add edi, edi
add edi, edi
mov byte [esp + 0xb8], 0xa
mov eax, dword [esi + edi]
add esi, edi
push 0x1006180c
push eax
call dword [sym.imp.MSVCR80.dll_wcspbrk]
add esp, 8
test eax, eax
je 0x10051838
sub eax, dword [esi]
sar eax, 1
cmp eax, 0xffffffff
mov dword [esp + 0x48], eax
jne 0x100518c6
mov eax, dword [esp + 0x38]
test eax, eax
je 0x1005184f
mov ecx, dword [esp + 0x3c]
sub ecx, eax
sar ecx, 2
cmp dword [esp + 0x28], ecx
jb 0x10051859
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x38]
mov ecx, dword [edi + eax]
add edi, eax
cmp ebx, ecx
je 0x10051a71
cmp dword [ebx - 0xc], 0
lea esi, [ebx - 0xc]
jge 0x1005187a
lea edx, [ebx - 0xc]
cmp edx, 0x1006eb34
jne 0x10051880
cmp dword [ecx - 0xc], 0
jge 0x10051892
mov ebx, dword [ecx - 8]
push ecx
lea esi, [esp + 0x24]
call fcn.100158a0
jmp 0x10051a69
add ebx, 0xfffffff4
cmp ebx, 0x1006eb34
je 0x100518b1
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100518b1
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [edi]
mov dword [esp + 0x20], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x10051a69
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x100518dd
mov eax, dword [esp + 0x3c]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x28], eax
jb 0x100518e7
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x1c]
lea ebx, [ecx + edi]
mov ecx, dword [esp + 0x48]
push eax
call fcn.10015a20
mov ebx, eax
mov byte [esp + 0xb8], 0xb
mov eax, dword [ebx]
mov ecx, dword [esp + 0x20]
cmp ecx, eax
je 0x10051964
cmp dword [ecx - 0xc], 0
lea esi, [ecx - 0xc]
jge 0x10051920
lea edx, [ecx - 0xc]
cmp edx, 0x1006eb34
jne 0x10051926
cmp dword [eax - 0xc], 0
jge 0x10051935
mov ebx, dword [eax - 8]
push eax
lea esi, [esp + 0x24]
call fcn.100158a0
jmp 0x10051964
add ecx, 0xfffffff4
cmp ecx, 0x1006eb34
je 0x10051954
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10051954
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ebx, dword [ebx]
mov dword [esp + 0x20], ebx
add ebx, 0xfffffff4
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov byte [esp + 0xb8], 0xa
mov eax, dword [esp + 0x1c]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x10051999
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10051999
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff4
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x38]
test eax, eax
mov esi, dword [esp + 0x28]
je 0x100519b2
mov ecx, dword [esp + 0x3c]
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jb 0x100519bc
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x38]
mov edx, dword [eax + edi]
mov ecx, dword [edx - 8]
add ecx, 0xffffffff
cmp dword [esp + 0x48], ecx
jge 0x10051a6d
test eax, eax
je 0x100519e0
mov ecx, dword [esp + 0x3c]
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jb 0x100519ea
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x38]
test eax, eax
mov ecx, dword [eax + edi]
mov ebx, dword [ecx - 8]
je 0x10051a01
mov ecx, dword [esp + 0x3c]
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jb 0x10051a0b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x38]
mov ecx, ebx
sub ecx, dword [esp + 0x48]
lea edx, [esp + 0x24]
add eax, edi
push edx
sub ecx, 1
push eax
call fcn.10015170
mov edi, eax
lea eax, [esp + 0x44]
mov byte [esp + 0xb8], 0xc
call fcn.10015ac0
mov byte [esp + 0xb8], 0xa
mov eax, dword [esp + 0x24]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x10051a69
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10051a69
mov eax, dword [esp + 0x24]
add eax, 0xfffffff4
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x20]
xor esi, esi
cmp dword [0x1007079c], esi
je 0x10051aab
mov edi, dword [sym.imp.MSVCR80.dll__wcsicmp]
mov eax, 0x1007079c
mov eax, dword [eax]
push eax
push ebx
call edi
add esp, 8
test eax, eax
je 0x10051b0a
add esi, 1
cmp dword [esi*4 + 0x1007079c], 0
lea eax, [esi*4 + 0x1007079c]
jne 0x10051a86
mov eax, dword [esp + 0x38]
cmp byte [ebp + 0x10], 0
jne 0x1005211d
mov esi, dword [esp + 0x44]
lea ecx, [esi - 0xc]
cmp ecx, 0x1006eb34
je 0x10051adf
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10051adb
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x38]
add ebx, 0xfffffff4
cmp ebx, 0x1006eb34
je 0x10051d82
mov esi, dword [esp + 0x20]
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10051d7e
push esi
jmp 0x10051d76
mov esi, dword [esp + 0x44]
lea edx, [esi - 0xc]
cmp edx, 0x1006eb34
je 0x10051b30
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10051b30
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
lea eax, [ebx - 0xc]
cmp eax, 0x1006eb34
mov byte [esp + 0xb8], 8
je 0x10051b59
lea esi, [ebx - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10051b59
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
add dword [esp + 0x28], 1
jmp 0x100517d0
push ecx
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 0xc], 0
lea eax, [ecx - 0xc]
mov dword [esp + 0x4c], esp
mov esi, esp
jl 0x10051b82
push eax
mov dword [esi], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x10051bfb
mov edx, dword [0x1006eb44]
push ecx
mov dword [esi], edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
mov eax, dword [esi]
cmp dword [eax - 0xc], 1
lea ecx, [eax - 0xc]
jg 0x10051ba3
cmp edi, dword [eax - 4]
jle 0x10051bda
add eax, 0xfffffff4
cmp eax, 0x1006eb34
je 0x10051bcd
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10051bc6
mov eax, dword [esi]
sub eax, 0xc
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [0x1006eb44]
mov dword [esi], eax
mov ecx, edi
mov edx, esi
call fcn.10011c80
test eax, eax
je 0x10051bfb
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi]
lea ebx, [edi + edi]
push ebx
push ecx
push edx
call sub.MSVCR80.dll_memcpy
mov eax, dword [esi]
mov dword [eax - 8], edi
mov ecx, dword [esi]
add esp, 0xc
mov word [ebx + ecx], 0
mov byte [esp + 0xbc], 0xf
push ecx
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], 0
lea eax, [ecx - 0xc]
mov dword [esp + 0x4c], esp
mov esi, esp
jl 0x10051c22
push eax
mov dword [esi], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x10051c9b
mov edx, dword [0x1006eb44]
push ecx
mov dword [esi], edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
mov eax, dword [esi]
cmp dword [eax - 0xc], 1
lea ecx, [eax - 0xc]
jg 0x10051c43
cmp edi, dword [eax - 4]
jle 0x10051c7a
add eax, 0xfffffff4
cmp eax, 0x1006eb34
je 0x10051c6d
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10051c66
mov eax, dword [esi]
sub eax, 0xc
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [0x1006eb44]
mov dword [esi], eax
mov ecx, edi
mov edx, esi
call fcn.10011c80
test eax, eax
je 0x10051c9b
mov ecx, dword [esp + 0x18]
mov edx, dword [esi]
lea ebx, [edi + edi]
push ebx
push ecx
push edx
call sub.MSVCR80.dll_memcpy
mov eax, dword [esi]
mov dword [eax - 8], edi
mov ecx, dword [esi]
add esp, 0xc
mov word [ebx + ecx], 0
lea ebx, [esp + 0x60]
mov byte [esp + 0xc0], 8
call fcn.1000fca0
add esp, 8
mov ebx, eax
mov esi, dword [ebp + 0xc]
mov byte [esp + 0xb8], 0x10
mov eax, dword [esi + 4]
test eax, eax
jne 0x10051cc7
xor edx, edx
jmp 0x10051ccf
mov edx, dword [esi + 8]
sub edx, eax
sar edx, 3
test eax, eax
je 0x10051d08
mov ecx, dword [esi + 0xc]
sub ecx, eax
sar ecx, 3
cmp edx, ecx
jae 0x10051d08
mov edi, dword [esi + 8]
mov byte [esp + 0x54], 0
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x54]
push edx
push eax
push ebx
push edi
mov ecx, 1
call fcn.10055eb0
add esp, 0x10
add edi, 8
mov dword [esi + 8], edi
jmp 0x10051d24
mov edi, dword [esi + 8]
cmp eax, edi
jbe 0x10051d15
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push edi
push esi
push ebx
lea ecx, [esp + 0x70]
push ecx
mov eax, esi
call fcn.100536b0
mov eax, dword [esp + 0x5c]
lea edx, [eax - 0xc]
cmp edx, 0x1006eb34
je 0x10051d51
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10051d51
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff4
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x58]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x10051d7e
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10051d7e
mov eax, dword [esp + 0x58]
add eax, 0xfffffff4
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x38]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
xor ecx, ecx
cmp eax, ecx
je 0x10051ddb
mov edi, dword [esp + 0x3c]
cmp eax, edi
mov esi, eax
je 0x10051dd0
jmp 0x10051da0
mov eax, dword [esi]
lea edx, [eax - 0xc]
cmp edx, 0x1006eb34
je 0x10051dc5
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x10051dc5
mov eax, dword [esi]
sub eax, 0xc
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
add esi, 4
cmp esi, edi
jne 0x10051da0
mov eax, dword [esp + 0x38]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ecx, ecx
mov eax, dword [esp + 0x30]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x10051e09
lea esi, [eax - 0xc]
push esi
call ebx
test eax, eax
jg 0x10051e09
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov esi, dword [esp + 0x18]
lea edx, [esi - 0xc]
cmp edx, 0x1006eb34
je 0x10051e2b
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x10051e2b
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov byte [esp + 0xb8], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
cmp eax, 0x1006eb34
je 0x10051e5c
mov esi, dword [esp + 0x10]
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10051e5c
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov edi, dword [esp + 0x14]
add edi, 1
cmp edi, 5
mov dword [esp + 0x14], edi
jl 0x10051440
mov eax, dword [esp + 0x50]
push eax
push 0x10070828
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov al, 1
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [0x1006eb44]
mov dword [esp + 0x14], ecx
push 0x11a
lea ecx, [esp + 0x18]
call fcn.10013a10
mov esi, dword [esp + 0x14]
mov edx, dword [edi + 0xaac]
push 0x10
push esi
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea eax, [esi - 0xc]
cmp eax, 0x1006eb34
je 0x10051eeb
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x10051eeb
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov esi, dword [esp + 0x18]
lea ecx, [esi - 0xc]
cmp ecx, 0x1006eb34
je 0x10051f0d
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x10051f0d
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov esi, dword [esp + 0x10]
lea edx, [esi - 0xc]
cmp edx, 0x1006eb34
je 0x10051f2f
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x10051f2f
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x50]
push eax
push 0x10070828
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
xor al, al
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [0x1006eb44]
mov dword [esp + 0x14], ecx
push 0x11a
lea ecx, [esp + 0x18]
call fcn.10013a10
mov edx, dword [ebp + 8]
add edx, 0xab0
push edx
lea eax, [esp + 0x20]
push eax
mov esi, 0x10061800
mov byte [esp + 0xc0], 4
call fcn.100170d0
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x18]
mov byte [esp + 0xc0], 5
call fcn.100159b0
mov edi, dword [esp + 0x14]
mov edx, dword [eax]
push 0x10
push edi
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x10051fea
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x10051fea
mov edx, dword [esp + 0x24]
add edx, 0xfffffff4
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x1c]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x10052013
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x10052013
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
lea eax, [edi - 0xc]
cmp eax, 0x1006eb34
je 0x10052030
add edi, 0xfffffff4
push edi
call esi
test eax, eax
jg 0x10052030
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov edi, dword [esp + 0x30]
lea ecx, [edi - 0xc]
cmp ecx, 0x1006eb34
je 0x10052052
add edi, 0xfffffff4
push edi
call esi
test eax, eax
jg 0x10052052
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov edi, dword [esp + 0x18]
lea edx, [edi - 0xc]
cmp edx, 0x1006eb34
je 0x10052074
add edi, 0xfffffff4
push edi
call esi
test eax, eax
jg 0x10052074
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov edi, dword [esp + 0x10]
lea eax, [edi - 0xc]
cmp eax, 0x1006eb34
je 0x10052095
add edi, 0xfffffff4
push edi
call esi
test eax, eax
jg 0x10052095
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ecx, dword [esp + 0x50]
push ecx
push 0x10070828
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
xor al, al
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [0x1006eb44]
push 0x11a
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], edx
call fcn.10013a10
mov eax, dword [ebp + 8]
add eax, 0xab4
push eax
lea ecx, [esp + 0x20]
push ecx
mov esi, 0x10061800
mov byte [esp + 0xc0], 6
call fcn.100170d0
push eax
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x18]
mov byte [esp + 0xc0], 7
call fcn.100159b0
mov edi, dword [esp + 0x14]
mov eax, dword [eax]
push 0x10
push edi
push eax
jmp 0x10051fb3
mov edx, dword [0x1006eb44]
push 0x11a
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], edx
call fcn.10013a10
mov eax, dword [ebp + 8]
add eax, 0xab8
push eax
lea ecx, [esp + 0x20]
push ecx
mov esi, 0x10061800
mov byte [esp + 0xc0], 0xd
call fcn.100170d0
mov esi, eax
mov byte [esp + 0xb8], 0xe
mov eax, dword [esp + 0x38]
test eax, eax
je 0x10052176
mov ecx, dword [esp + 0x3c]
sub ecx, eax
sar ecx, 2
cmp dword [esp + 0x28], ecx
jb 0x10052180
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x28]
lea edx, [eax + edx*4]
push esi
lea eax, [esp + 0x28]
push eax
call fcn.100159b0
mov esi, dword [esp + 0x14]
mov ecx, dword [eax]
push 0x10
push esi
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esp + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
cmp edx, 0x1006eb34
je 0x100521d3
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x100521d3
mov eax, dword [esp + 0x24]
add eax, 0xfffffff4
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x1c]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x100521fc
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x100521fc
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
lea eax, [esi - 0xc]
cmp eax, 0x1006eb34
je 0x10052219
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x10052219
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x44]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x1005223b
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x1005223b
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
lea edx, [ebx - 0xc]
cmp edx, 0x1006eb34
je 0x10052259
add ebx, 0xfffffff4
push ebx
call edi
test eax, eax
jg 0x10052259
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov esi, dword [esp + 0x38]
xor eax, eax
cmp esi, eax
je 0x100522ab
mov eax, dword [esp + 0x3c]
cmp esi, eax
mov ebx, eax
je 0x100522a0
lea ecx, [ecx]
mov eax, dword [esi]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x10052295
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x10052295
mov edx, dword [esi]
sub edx, 0xc
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
add esi, 4
cmp esi, ebx
jne 0x10052270
mov esi, dword [esp + 0x38]
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x30]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x100522d9
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x100522d9
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x18]
lea edx, [eax - 0xc]
cmp edx, 0x1006eb34
je 0x100522fb
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x100522fb
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x10]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x1005231d
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x1005231d
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov edx, dword [esp + 0x50]
push edx
jmp 0x1005209a