Function at 0x10053e60
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 + 0x1b4]
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 + 0x4d0]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x10053f29
mov eax, dword [ebx + 0x4d0]
push 0x400
lea edi, [ebx + 0x4f0]
push edi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [ebx + 0x4d0]
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 0x10053f3a
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 0x10053f4c
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, 0x478
mov dword [esp + 0x14], edi
mov dword [esp + 0x60], ebx
jmp 0x10053f74
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 0x10053fc7
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xcf4]
push eax
mov eax, ecx
push eax
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x10054032
mov eax, dword [esp + 0x18]
cmp dword [eax - 8], 0
je 0x10053fed
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0xcf8]
push ecx
push eax
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x10054032
mov eax, dword [esp + 0x18]
lea edx, [eax - 0xc]
cmp edx, 0x1006eb34
je 0x1005400f
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1005400f
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 0x1005498c
lea esi, [eax - 0xc]
jmp 0x10054978
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], 0
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.MSVCR80.dll__wcsicmp]
je 0x10054056
mov eax, dword [edi + 0xcf4]
push eax
push ecx
call ebx
add esp, 8
test eax, eax
jne 0x10054073
mov esi, dword [esp + 0x18]
cmp dword [esi - 8], 0
je 0x10054077
mov eax, dword [edi + 0xcf8]
push eax
push esi
call ebx
add esp, 8
test eax, eax
je 0x10054077
jmp 0x100540a9
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], 0
je 0x100540f9
mov eax, dword [edi + 0xcf4]
push eax
push ecx
call ebx
add esp, 8
test eax, eax
je 0x100540f9
cmp dword [esi - 8], 0
je 0x100540a9
mov eax, dword [edi + 0xcf8]
push eax
push esi
call ebx
add esp, 8
test eax, eax
jne 0x100540f9
cmp byte [ebp + 0x10], 0
jne 0x100549ca
add esi, 0xfffffff4
cmp esi, 0x1006eb34
je 0x100540d9
mov esi, dword [esp + 0x18]
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100540d9
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 0x1005498c
jmp 0x10054975
mov eax, dword [0x1006eb44]
mov ecx, str._:____
shr ecx, 0x10
mov dword [esp + 0x30], eax
jne 0x10054120
mov edx, str._:____
movzx eax, dx
push eax
lea ecx, [esp + 0x34]
call fcn.10013a10
jmp 0x10054156
push str._:____
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x10054156
mov ecx, esi
lea edx, [esp + 0x30]
call fcn.10011c80
test eax, eax
je 0x10054156
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 0x100541ef
sub eax, edi
sar eax, 1
js 0x100541ef
cmp byte [ebp + 0x10], 0
jne 0x10054a89
mov esi, dword [esp + 0x30]
lea eax, [esi - 0xc]
cmp eax, 0x1006eb34
je 0x100541aa
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100541aa
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 0x100541d0
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100541d0
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 0x1005498c
lea esi, [edi - 0xc]
jmp 0x10054978
mov edi, dword [ebp + 0xc]
mov eax, edi
mov byte [esp + 0x2f], 0
xor esi, esi
call fcn.10053690
test eax, eax
jbe 0x100542c7
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x1005421b
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x10054221
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 0x1005423d
mov byte [esp + 0x2f], 1
mov eax, edi
add esi, 1
call fcn.10053690
cmp esi, eax
jb 0x10054208
cmp byte [esp + 0x2f], 0
je 0x100542c7
cmp byte [ebp + 0x10], 0
jne 0x10054bef
mov esi, dword [esp + 0x30]
lea edx, [esi - 0xc]
cmp edx, 0x1006eb34
je 0x10054282
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10054282
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 0x100542a7
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100542a7
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 0x1005498c
jmp 0x10054975
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 0x10054693
mov eax, dword [esp + 0x3c]
sub eax, esi
sar eax, 2
cmp dword [esp + 0x28], eax
jae 0x10054693
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 0x10054368
sub eax, dword [esi]
sar eax, 1
cmp eax, 0xffffffff
mov dword [esp + 0x48], eax
jne 0x100543f6
mov eax, dword [esp + 0x38]
test eax, eax
je 0x1005437f
mov ecx, dword [esp + 0x3c]
sub ecx, eax
sar ecx, 2
cmp dword [esp + 0x28], ecx
jb 0x10054389
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 0x100545a1
cmp dword [ebx - 0xc], 0
lea esi, [ebx - 0xc]
jge 0x100543aa
lea edx, [ebx - 0xc]
cmp edx, 0x1006eb34
jne 0x100543b0
cmp dword [ecx - 0xc], 0
jge 0x100543c2
mov ebx, dword [ecx - 8]
push ecx
lea esi, [esp + 0x24]
call fcn.100158a0
jmp 0x10054599
add ebx, 0xfffffff4
cmp ebx, 0x1006eb34
je 0x100543e1
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100543e1
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 0x10054599
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x1005440d
mov eax, dword [esp + 0x3c]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x28], eax
jb 0x10054417
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 0x10054494
cmp dword [ecx - 0xc], 0
lea esi, [ecx - 0xc]
jge 0x10054450
lea edx, [ecx - 0xc]
cmp edx, 0x1006eb34
jne 0x10054456
cmp dword [eax - 0xc], 0
jge 0x10054465
mov ebx, dword [eax - 8]
push eax
lea esi, [esp + 0x24]
call fcn.100158a0
jmp 0x10054494
add ecx, 0xfffffff4
cmp ecx, 0x1006eb34
je 0x10054484
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10054484
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 0x100544c9
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100544c9
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 0x100544e2
mov ecx, dword [esp + 0x3c]
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jb 0x100544ec
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 0x1005459d
test eax, eax
je 0x10054510
mov ecx, dword [esp + 0x3c]
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jb 0x1005451a
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 0x10054531
mov ecx, dword [esp + 0x3c]
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jb 0x1005453b
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 0x10054599
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10054599
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 [0x100707d8], esi
je 0x100545db
mov edi, dword [sym.imp.MSVCR80.dll__wcsicmp]
mov eax, 0x100707d8
mov eax, dword [eax]
push eax
push ebx
call edi
add esp, 8
test eax, eax
je 0x1005463a
add esi, 1
cmp dword [esi*4 + 0x100707d8], 0
lea eax, [esi*4 + 0x100707d8]
jne 0x100545b6
mov eax, dword [esp + 0x38]
cmp byte [ebp + 0x10], 0
jne 0x10054c4d
mov esi, dword [esp + 0x44]
lea ecx, [esi - 0xc]
cmp ecx, 0x1006eb34
je 0x1005460f
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1005460b
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 0x100548b2
mov esi, dword [esp + 0x20]
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100548ae
push esi
jmp 0x100548a6
mov esi, dword [esp + 0x44]
lea edx, [esi - 0xc]
cmp edx, 0x1006eb34
je 0x10054660
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10054660
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 0x10054689
lea esi, [ebx - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10054689
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
add dword [esp + 0x28], 1
jmp 0x10054300
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 0x100546b2
push eax
mov dword [esi], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x1005472b
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 0x100546d3
cmp edi, dword [eax - 4]
jle 0x1005470a
add eax, 0xfffffff4
cmp eax, 0x1006eb34
je 0x100546fd
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100546f6
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 0x1005472b
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 0x10054752
push eax
mov dword [esi], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x100547cb
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 0x10054773
cmp edi, dword [eax - 4]
jle 0x100547aa
add eax, 0xfffffff4
cmp eax, 0x1006eb34
je 0x1005479d
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10054796
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 0x100547cb
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 0x100547f7
xor edx, edx
jmp 0x100547ff
mov edx, dword [esi + 8]
sub edx, eax
sar edx, 3
test eax, eax
je 0x10054838
mov ecx, dword [esi + 0xc]
sub ecx, eax
sar ecx, 3
cmp edx, ecx
jae 0x10054838
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 0x10054854
mov edi, dword [esi + 8]
cmp eax, edi
jbe 0x10054845
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 0x10054881
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10054881
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 0x100548ae
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100548ae
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 0x1005490b
mov edi, dword [esp + 0x3c]
cmp eax, edi
mov esi, eax
je 0x10054900
jmp 0x100548d0
mov eax, dword [esi]
lea edx, [eax - 0xc]
cmp edx, 0x1006eb34
je 0x100548f5
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x100548f5
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 0x100548d0
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 0x10054939
lea esi, [eax - 0xc]
push esi
call ebx
test eax, eax
jg 0x10054939
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 0x1005495b
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x1005495b
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 0x1005498c
mov esi, dword [esp + 0x10]
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1005498c
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 0x10053f70
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 + 0xcfc]
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 0x10054a1b
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x10054a1b
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 0x10054a3d
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x10054a3d
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 0x10054a5f
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x10054a5f
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, 0xd00
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 0x10054b1a
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x10054b1a
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 0x10054b43
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x10054b43
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 0x10054b60
add edi, 0xfffffff4
push edi
call esi
test eax, eax
jg 0x10054b60
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 0x10054b82
add edi, 0xfffffff4
push edi
call esi
test eax, eax
jg 0x10054b82
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 0x10054ba4
add edi, 0xfffffff4
push edi
call esi
test eax, eax
jg 0x10054ba4
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 0x10054bc5
add edi, 0xfffffff4
push edi
call esi
test eax, eax
jg 0x10054bc5
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, 0xd04
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 0x10054ae3
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, 0xd08
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 0x10054ca6
mov ecx, dword [esp + 0x3c]
sub ecx, eax
sar ecx, 2
cmp dword [esp + 0x28], ecx
jb 0x10054cb0
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 0x10054d03
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x10054d03
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 0x10054d2c
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x10054d2c
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 0x10054d49
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x10054d49
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 0x10054d6b
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x10054d6b
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
lea edx, [ebx - 0xc]
cmp edx, 0x1006eb34
je 0x10054d89
add ebx, 0xfffffff4
push ebx
call edi
test eax, eax
jg 0x10054d89
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 0x10054ddb
mov eax, dword [esp + 0x3c]
cmp esi, eax
mov ebx, eax
je 0x10054dd0
lea ecx, [ecx]
mov eax, dword [esi]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x10054dc5
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x10054dc5
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 0x10054da0
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 0x10054e09
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x10054e09
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 0x10054e2b
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x10054e2b
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 0x10054e4d
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x10054e4d
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov edx, dword [esp + 0x50]
push edx
jmp 0x10054bca