Function at 0x68008120
Capabilities:
Access peb ldr_data
Get graphical window text
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x858
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
mov esi, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
cmp eax, 0x110
je 0x680082b0
cmp eax, 0x111
je 0x680081c0
cmp eax, 0x4e
je 0x68008170
xor eax, eax
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov edx, dword [edx + 8]
cmp edx, 0xffffff31
je 0x68008320
xor eax, eax
cmp edx, 0xffffff38
jne 0x6800815b
mov dword [esp], ebx
call sym._GetParent_4
sub esp, 4
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0
mov dword [esp + 4], 0x470
mov dword [esp], eax
call sym._PostMessageW_16
mov eax, 1
sub esp, 0x10
jmp 0x6800815b
cmp esi, 0xa8e
jne 0x68008159
mov dword [esp], ebx
mov dword [esp + 4], 8
call sym._GetWindowLongW_8
lea edx, [ebp - 0x810]
mov ecx, 0x14
mov dword [ebp - 0x838], ebx
mov esi, eax
mov edi, edx
xor eax, eax
sub esp, 8
rep stosd dword es:[edi], eax
mov dword [ebp - 0x814], ebx
mov edx, 2
mov dword [ebp - 0x818], 0x58
mov ebx, edx
mov eax, dword [esi + 4]
mov esi, 0x68017820
mov edi, esi
test eax, eax
mov dword [ebp - 0x834], eax
lea eax, [ebp - 0x418]
mov dword [ebp - 0x830], eax
sete byte [ebp - 0x82c]
jmp 0x68008259
cmp byte [ebp - 0x82c], 0
jne 0x68008260
test dword [ebp - 0x834], eax
jne 0x68008260
add edi, 0xc
mov eax, 0x68017874
cmp eax, edi
je 0x680083c0
mov eax, dword [edi + 4]
test eax, eax
jne 0x68008238
mov eax, dword [ebp - 0x830]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [edi]
mov dword [esp + 4], eax
mov eax, dword [0x68022004]
mov dword [esp], eax
call sym._LoadStringW_16
mov ecx, dword [edi + 8]
sub esp, 0x10
cmp word [ecx], 0
je 0x680082a7
mov edx, ecx
nop
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x68008298
sub edx, ecx
sar edx, 1
add eax, edx
lea ebx, [ebx + eax + 2]
jmp 0x68008249
mov esi, dword [edx + 0x1c]
mov dword [esp + 4], 8
mov dword [esp], ebx
mov dword [esp + 8], esi
call sym._SetWindowLongW_12
mov edi, dword [esi + 0x20]
sub esp, 0xc
test edi, edi
je 0x68008159
mov dword [esp], ebx
mov dword [esp + 4], 0xa8d
call sym._GetDlgItem_8
mov edx, dword [esi + 0x20]
sub esp, 8
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc
mov dword [esp], eax
call sym._SendMessageW_16
xor eax, eax
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp + 4], 0xa8d
mov dword [esp], ebx
call sym._GetDlgItem_8
sub esp, 8
mov edi, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xe
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
mov dword [ebp - 0x82c], eax
mov dword [esp + 4], 8
mov dword [esp], ebx
call sym._GetWindowLongW_8
mov edx, dword [ebp - 0x82c]
sub esp, 8
mov esi, eax
test edx, edx
jne 0x68008580
test byte [eax + 4], 1
jne 0x68008396
mov edx, dword [eax + 8]
mov ecx, 0x420
mov eax, ebx
call sym._import_warning.part.0
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], ebx
call sym._SetWindowLongW_12
mov eax, 1
sub esp, 0xc
jmp 0x6800815b
mov edi, ebx
mov dword [esp + 4], 0
mov ebx, dword [ebp - 0x838]
add edi, edi
mov dword [esp + 8], edi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x838], eax
sub esp, 0xc
test eax, eax
je 0x680084cb
mov dword [ebp - 0x83c], ebx
mov edi, eax
jmp 0x68008431
cmp byte [ebp - 0x82c], 0
jne 0x68008438
test dword [ebp - 0x834], eax
jne 0x68008438
add esi, 0xc
mov eax, 0x68017874
cmp eax, esi
je 0x680084c0
mov eax, dword [esi + 4]
test eax, eax
jne 0x68008410
mov eax, dword [ebp - 0x830]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [esi]
mov dword [esp + 4], eax
mov eax, dword [0x68022004]
mov dword [esp], eax
call sym._LoadStringW_16
lea ebx, [eax + eax]
mov eax, dword [ebp - 0x418]
sub esp, 0x10
mov dword [esp], edi
add edi, ebx
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
call sym._memcpy
xor ecx, ecx
xor eax, eax
mov word [edi], cx
mov ecx, dword [esi + 8]
lea esi, [esi]
movzx edx, word [ecx + eax]
mov word [edi + eax + 2], dx
add eax, 2
test dx, dx
jne 0x68008488
cmp word [ecx], 0
je 0x68008688
mov eax, ecx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x680084a8
sub eax, ecx
add eax, 2
lea edi, [edi + eax + 2]
jmp 0x68008421
xor edx, edx
mov ebx, dword [ebp - 0x83c]
mov word [edi], dx
mov dword [ebp - 0x7f8], 0x104
mov eax, dword [ebp - 0x838]
mov dword [ebp - 0x80c], eax
mov eax, dword [ebp - 0x830]
mov dword [ebp - 0x7fc], eax
xor eax, eax
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x818]
mov dword [esp], eax
call sym._GetOpenFileNameW_4
sub esp, 4
test eax, eax
jne 0x68008540
mov edx, dword [ebp - 0x80c]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x68008159
mov dword [esp + 4], 0xa8d
mov esi, dword [ebp - 0x7fc]
mov dword [esp], ebx
call sym._GetDlgItem_8
sub esp, 8
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x6800850b
add edx, 1
mov dword [esp + 4], 0
lea ecx, [edx + edx]
mov dword [ebp - 0x830], edx
mov dword [esp + 8], ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x834], eax
call eax
sub esp, 0xc
test eax, eax
je 0x68008159
mov edx, dword [ebp - 0x830]
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], 0xd
mov dword [ebp - 0x82c], eax
call sym._SendMessageW_16
mov eax, dword [ebp - 0x82c]
sub esp, 0x10
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
mov edi, eax
cmp eax, 0xffffffff
je 0x68008698
mov edx, dword [ebp - 0x82c]
mov eax, dword [esi + 4]
lea ecx, [esi + 0x24]
call sym._open_store_from_file
mov edx, eax
test eax, eax
je 0x680088f5
mov eax, dword [esi + 4]
test eax, 0xe0000
jne 0x6800891e
mov dword [esi + 0x10], 5
mov dword [esi + 0x14], edx
mov dword [esi + 0x28], 1
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x82c]
sub esp, 4
mov dword [esi + 0x20], eax
xor eax, eax
jmp 0x6800815b
mov eax, 2
jmp 0x680084b6
mov eax, dword [esi + 8]
mov esi, eax
mov dword [ebp - 0x838], eax
mov eax, dword [0x68022004]
test esi, esi
je 0x68008954
lea esi, [ebp - 0x418]
mov dword [esp + 0xc], 0x200
mov dword [esp + 8], esi
mov dword [esp + 4], 0x422
mov dword [esp], eax
mov dword [ebp - 0x830], esi
call sym._LoadStringW_16
lea edx, [ebp - 0x81c]
sub esp, 0x10
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], 0
mov dword [esp], 0x1100
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_FormatMessageW]
sub esp, 0x1c
cmp word [ebp - 0x418], 0
je 0x68008989
mov eax, esi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x68008738
sub eax, dword [ebp - 0x830]
sar eax, 1
mov edi, dword [ebp - 0x82c]
cmp word [edi], 0
je 0x68008773
mov edx, edi
mov esi, esi
lea edi, [edi]
add edx, 2
cmp word [edx], 0
jne 0x68008760
sub edx, dword [ebp - 0x82c]
sar edx, 1
add eax, edx
mov ecx, dword [ebp - 0x81c]
cmp word [ecx], 0
je 0x68008797
mov edx, ecx
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x68008788
sub edx, ecx
sar edx, 1
add eax, edx
lea eax, [eax + eax + 6]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x834]
call eax
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x68008997
mov ecx, dword [ebp - 0x830]
xor eax, eax
lea esi, [esi]
movzx edx, word [ecx + eax]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x680087d8
cmp word [ebp - 0x418], 0
je 0x68008990
mov eax, dword [ebp - 0x830]
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x68008800
sub eax, dword [ebp - 0x830]
add eax, esi
mov edi, dword [ebp - 0x82c]
xor edx, edx
lea esi, [esi]
movzx ecx, word [edi + edx]
mov word [eax + edx], cx
add edx, 2
test cx, cx
jne 0x68008820
mov edi, dword [ebp - 0x82c]
cmp word [edi], 0
je 0x68008851
mov edx, edi
nop
add edx, 2
cmp word [edx], 0
jne 0x68008840
sub edx, dword [ebp - 0x82c]
add eax, edx
mov dword [eax], 0xa003a
mov edi, dword [ebp - 0x81c]
xor edx, edx
nop
movzx ecx, word [edi + edx]
mov word [eax + edx + 4], cx
add edx, 2
test cx, cx
jne 0x68008860
mov eax, dword [ebp - 0x838]
mov dword [esp + 4], esi
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], eax
mov dword [esp], ebx
call sym._MessageBoxW_16
sub esp, 0x10
mov dword [esp + 8], esi
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
mov eax, dword [ebp - 0x81c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LocalFree]
sub esp, 4
mov edi, dword [ebp - 0x82c]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edi
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
jmp 0x68008396
mov ecx, 0x421
test byte [esi + 4], 1
jne 0x6800893d
mov edx, dword [esi + 8]
mov eax, ebx
call sym._import_warning.part.0
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 4
jmp 0x680088ca
mov dword [ebp - 0x830], edx
call sym._check_store_context_type.part.0
mov edx, dword [ebp - 0x830]
mov ecx, 0x414
test eax, eax
je 0x680088fa
jmp 0x68008658
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 4
jmp 0x680088ca
lea esi, [ebp - 0x818]
mov dword [esp + 0xc], 0x200
mov dword [esp + 8], esi
mov dword [esp + 4], 0x413
mov dword [esp], eax
call sym._LoadStringW_16
mov dword [ebp - 0x838], esi
mov eax, dword [0x68022004]
sub esp, 0x10
jmp 0x680086b0
xor eax, eax
jmp 0x68008749
mov eax, esi
jmp 0x68008811
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x680088b8