Function at 0x1001d6c0
Capabilities:
Check mutex on windows
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c1900
mov eax, dword fs:[0]
push eax
sub esp, 0x32c
mov eax, dword [0x100e716c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 0x24a]
xor ebx, ebx
mov dword [ebp - 0x268], ebx
call fcn.1007b420
lea eax, [ebp - 0x268]
push 1
push eax
call fcn.10063150
add esp, 8
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x25c], 8
push eax
mov dword [ebp - 0x258], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov eax, dword [0x1010fc14]
test eax, eax
mov ecx, dword [ebp + 8]
push ebx
cmovne ecx, eax
push ecx
push ebx
mov ecx, 0x1010fc1c
call fcn.10018e80
cmp dword [0x1010fc14], ebx
mov ecx, str.helper
mov eax, str.helper_1
push ebx
cmove eax, ecx
push eax
push 1
call fcn.10018be0
mov ecx, eax
call fcn.10066bd0
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.1009cb00
add esp, 0xc
lea eax, [ebp - 0x218]
push ebx
push 0x1a
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.commonhelpercommonhelper.log
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call fcn.10079620
mov ecx, esi
mov dword [ebp - 0x220], ebx
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001d7e6
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x230]
call fcn.1000f730
lea eax, [ebp - 0x230]
push eax
call fcn.10018d60
mov ecx, eax
call fcn.10011130
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x1001d855
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001d84b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001e81a
push edx
push ecx
call fcn.1007a455
add esp, 8
push 0
push 0
push 1
push 0
push str.pre_run_0
call fcn.10018be0
mov ecx, eax
call fcn.10066bf0
mov byte [ebp - 0x249], bl
lea eax, [ebp - 0x254]
mov dword [ebp - 4], 0
push eax
call fcn.100508d9
lea eax, [ebp - 0x254]
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x249]
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x264]
push eax
push 0x100170c0
push 0x1010fc6c
call fcn.10051607
add esp, 0x10
test eax, eax
je 0x1001e811
lea eax, [ebp - 0x254]
mov dword [ebp - 4], 1
push eax
call fcn.10050913
mov ecx, dword [0x1010fc68]
add esp, 4
mov dword [ebp - 4], 0xffffffff
call fcn.10015b80
test eax, eax
jne 0x1001da0a
call fcn.10079320
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1001d9bf
push 0x47
push str.d:jenkins.jenkinsworkspacepets_helpercommonhelpercommonhelper.cpp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.1000f640
push 3
push 0x100c7a08
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.1000f640
call fcn.10079320
mov edi, eax
lea ecx, [ebp - 0xa8]
push 0xbe
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10008620
mov esi, eax
push str.Init_common_data_fail___exit
push esi
call fcn.10009ce0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0xa8]
call fcn.10009e10
lea ecx, [ebp - 0x248]
call fcn.100090a0
lea ecx, [ebp - 0x230]
call fcn.100090a0
xor edi, edi
mov eax, dword [ebp - 0x268]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1001d9df
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x24a]
call fcn.1007b4a0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007a7c6
mov esp, ebp
pop ebp
ret 0x10
mov byte [ebp - 0x249], 0
lea eax, [ebp - 0x254]
mov dword [ebp - 4], 4
push eax
call fcn.100508d9
lea eax, [ebp - 0x254]
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x249]
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x264]
push eax
push 0x10016ff0
push 0x1010fc78
call fcn.10051607
add esp, 0x10
test eax, eax
je 0x1001e7ee
lea eax, [ebp - 0x254]
mov dword [ebp - 4], 5
push eax
call fcn.10050913
mov eax, dword [0x1010fc74]
add esp, 4
cmp dword [0x1010fc14], 0
mov dword [ebp - 4], 0xffffffff
mov edi, dword [eax + 0x30]
jne 0x1001db49
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1009cb00
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x258]
call fcn.100080d0
lea eax, [ebp - 0x250]
push eax
call fcn.10018ca0
mov ecx, eax
call fcn.10015a50
mov eax, dword [ebp - 0x250]
test eax, eax
je 0x1001e81f
push eax
push dword [ebp - 0x258]
call fcn.100a0356
mov edx, dword [ebp - 0x250]
add esp, 8
mov esi, eax
neg esi
sbb esi, esi
add edx, 0xfffffff0
inc esi
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1001db27
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x258]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001db45
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x1001dbae
call fcn.1000d330
mov ecx, eax
test ecx, ecx
je 0x1001e829
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x260]
push str.HELPERFUZZYMODE_A2251B37_99C5_4AC8_9FDC_8DEAD06CC315
mov dword [ebp - 0x260], eax
call fcn.1000ca30
test al, al
jne 0x1001db8c
push 0x36
push str.HELPERFUZZYMODE_A2251B37_99C5_4AC8_9FDC_8DEAD06CC315
lea ecx, [ebp - 0x260]
call fcn.1000dd30
lea eax, [ebp - 0x260]
mov ebx, 1
push eax
call fcn.1004f070
add esp, 4
test eax, eax
jne 0x1001dbae
mov byte [ebp - 0x249], bl
test edi, edi
je 0x1001dbb5
mov byte [ebp - 0x249], 0
test bl, 1
je 0x1001dbdc
mov edx, dword [ebp - 0x260]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001dbdf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1001dbdf
or ebx, 0xffffffff
call fcn.10079320
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
cmp byte [ebp - 0x249], 0
movzx eax, al
je 0x1001dcc0
sub eax, 1
jne 0x1001e0fc
push 0x47
push str.d:jenkins.jenkinsworkspacepets_helpercommonhelpercommonhelper.cpp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.1000f640
push 3
push 0x100c7a08
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.1000f640
call fcn.10079320
mov edi, eax
lea ecx, [ebp - 0xa8]
push 0xc7
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10008620
mov esi, eax
push str.Use_origin_mode_without_fuzzy
push esi
call fcn.10009ce0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0xa8]
call fcn.10009e10
lea ecx, [ebp - 0x248]
call fcn.100090a0
lea ecx, [ebp - 0x230]
call fcn.100090a0
jmp 0x1001e0fc
test edi, edi
je 0x1001dfba
sub eax, 1
jne 0x1001dd84
push 0x47
push str.d:jenkins.jenkinsworkspacepets_helpercommonhelpercommonhelper.cpp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.1000f640
push 3
push 0x100c7a08
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.1000f640
call fcn.10079320
mov edi, eax
lea ecx, [ebp - 0xa8]
push 0xce
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10008620
mov esi, eax
push str.force_fuzzy_mode_
push esi
call fcn.10009ce0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0xa8]
call fcn.10009e10
lea ecx, [ebp - 0x248]
call fcn.100090a0
lea ecx, [ebp - 0x230]
call fcn.100090a0
lea eax, [ebp - 0x258]
push eax
call fcn.10018ca0
mov ecx, eax
call fcn.10015ad0
push eax
call fcn.1004f070
mov edx, dword [ebp - 0x258]
add esp, 4
mov esi, eax
add edx, 0xfffffff0
mov ecx, ebx
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1001ddbf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x1001de69
call fcn.10079320
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1001d9bf
push 0x47
push str.d:jenkins.jenkinsworkspacepets_helpercommonhelpercommonhelper.cpp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.1000f640
push 3
push 0x100c7a08
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.1000f640
call fcn.10079320
mov edi, eax
lea ecx, [ebp - 0xa8]
push 0xd2
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10008620
mov esi, eax
push str.error_to_try_fuzzy_mode_by_command__FFM__mutex___exit
jmp 0x1001d98d
call fcn.1001b350
test eax, eax
jne 0x1001df18
call fcn.10079320
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1001d9bf
push 0x47
push str.d:jenkins.jenkinsworkspacepets_helpercommonhelpercommonhelper.cpp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.1000f640
push 3
push 0x100c7a08
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.1000f640
call fcn.10079320
mov edi, eax
lea ecx, [ebp - 0xa8]
push 0xd8
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10008620
mov esi, eax
push str.error_to_try_fuzzy_mode_by_command__FFM__runapp___exit
jmp 0x1001d98d
call fcn.10079320
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1001d9bf
push 0x47
push str.d:jenkins.jenkinsworkspacepets_helpercommonhelpercommonhelper.cpp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.1000f640
push 3
push 0x100c7a08
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.1000f640
call fcn.10079320
mov edi, eax
lea ecx, [ebp - 0xa8]
push 0xdc
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10008620
mov esi, eax
push str.force_fuzzy_mode_prepare_end_
jmp 0x1001d98d
sub eax, 1
jne 0x1001e0ef
push 0x47
push str.d:jenkins.jenkinsworkspacepets_helpercommonhelpercommonhelper.cpp
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], al
call fcn.1000f640
push 3
push 0x100c7a08
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.1000f640
call fcn.10079320
mov edi, eax
lea ecx, [ebp - 0xa8]
push 0xe0
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.10008620
mov esi, eax
push str.IN_Fuzzy_mode.
push esi
call fcn.10009ce0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0xa8]
call fcn.10009e10
mov edx, dword [ebp - 0x21c]
cmp edx, 0x10
jb 0x1001e09a
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001e090
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001e833
push edx
push ecx
call fcn.1007a455
add esp, 8
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
cmp edx, 0x10
jb 0x1001e0ef
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001e0e5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001e838
push edx
push ecx
call fcn.1007a455
add esp, 8
call fcn.10018ff0
test eax, eax
je 0x1001d9bf
cmp dword [0x1010fc14], 0
jne 0x1001e2d1
call fcn.10079320
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1001e1d8
push 0x47
push str.d:jenkins.jenkinsworkspacepets_helpercommonhelpercommonhelper.cpp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.1000f640
push 3
push 0x100c7a08
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.1000f640
call fcn.10079320
mov edi, eax
lea ecx, [ebp - 0xa8]
push 0xf1
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10008620
mov esi, eax
push str.re_create_self_mutex
push esi
call fcn.10009ce0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0xa8]
call fcn.10009e10
lea ecx, [ebp - 0x248]
call fcn.100090a0
lea ecx, [ebp - 0x230]
call fcn.100090a0
lea eax, [ebp - 0x258]
push eax
call fcn.10018ca0
mov ecx, eax
call fcn.10015ad0
push dword [eax]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edx, dword [ebp - 0x258]
mov esi, eax
add edx, 0xfffffff0
mov ecx, ebx
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1001e216
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x1001d9bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1001e2d1
call fcn.10079320
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1001d9bf
push 0x47
push str.d:jenkins.jenkinsworkspacepets_helpercommonhelpercommonhelper.cpp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.1000f640
push 3
push 0x100c7a08
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.1000f640
call fcn.10079320
mov edi, eax
lea ecx, [ebp - 0xa8]
push 0xfd
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10008620
mov esi, eax
push str.Instance_break._exit
jmp 0x1001d98d
call fcn.10079320
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1001e3a0
push 0x47
push str.d:jenkins.jenkinsworkspacepets_helpercommonhelpercommonhelper.cpp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.1000f640
push 3
push 0x100c7a08
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.1000f640
call fcn.10079320
mov edi, eax
lea ecx, [ebp - 0xa8]
push 0x102
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10008620
mov esi, eax
push str.ready_to_do_work
push esi
call fcn.10009ce0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0xa8]
call fcn.10009e10
lea ecx, [ebp - 0x248]
call fcn.100090a0
lea ecx, [ebp - 0x230]
call fcn.100090a0
push 0
lea eax, [ebp - 0x2b4]
mov dword [ebp - 0x2b4], 1
push eax
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x2b0], 0
push eax
mov dword [ebp - 0x2ac], 0
mov dword [ebp - 0x2a8], 0
call sub.gdiplus.dll_GdiplusStartup
test eax, eax
je 0x1001e3eb
mov edi, 1
jmp 0x1001d9c1
push 0
push 0
push 1
push 0
push str.pre_run_1
call fcn.10018be0
mov ecx, eax
call fcn.10066bf0
mov edi, dword [0x1010f16c]
xorps xmm0, xmm0
add edi, 0x10
mov dword [ebp - 0x2a4], 0x100c8b34
push edi
movups xmmword [ebp - 0x2a0], xmm0
mov dword [ebp - 0x290], 0
mov dword [ebp - 0x28c], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x1010fc50]
mov ebx, eax
push 4
mov ecx, dword [esi + 8]
inc ecx
push ecx
push dword [esi]
call fcn.100a4033
add esp, 0xc
test eax, eax
je 0x1001e49e
mov dword [esi], eax
mov eax, dword [esi + 8]
push 4
inc eax
push eax
push dword [esi + 4]
call fcn.100a4033
add esp, 0xc
test eax, eax
je 0x1001e49e
mov ecx, dword [esi + 8]
mov dword [esi + 4], eax
lea edx, [ecx*4]
mov ecx, dword [esi]
add ecx, edx
je 0x1001e48f
mov dword [ecx], ebx
mov eax, dword [esi + 4]
add eax, edx
je 0x1001e49b
lea ecx, [ebp - 0x2a4]
mov dword [eax], ecx
inc dword [esi + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call ebx
lea ecx, [ebp - 0x338]
call fcn.100231c0
push dword [ebp - 0x268]
lea eax, [ebp - 0x318]
push eax
push 0x100e7068
push 0x100e7028
push 0x101133d8
call fcn.10016e30
movzx esi, ax
add esp, 0x14
mov eax, dword [ebp - 0x324]
test eax, eax
jne 0x1001e4ff
call fcn.1004fde6
mov dword [ebp - 0x324], eax
test eax, eax
jne 0x1001e4ff
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1001e588
push 0
push 0
push eax
call fcn.1004fee8
test si, si
je 0x1001e588
lea eax, [ebp - 0x338]
mov dword [ebp - 0x330], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x100e702c
mov dword [ebp - 0x32c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x100e7044]
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x330]
push 0x100e702c
mov dword [0x100e7044], eax
call ebx
mov ecx, dword [0x100e705c]
mov eax, dword [0x100e7064]
mov edx, dword [0x100e7058]
sub eax, ecx
push 0
push dword [0x101133dc]
push 0
push 0
push eax
mov eax, dword [0x100e7060]
sub eax, edx
push eax
push ecx
push edx
push 0x86020000
push 0
push esi
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebx, 1
xor esi, esi
test ebx, ebx
je 0x1001e5cc
nop dword [eax]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x288]
push eax
call edi
test eax, eax
jne 0x1001e5cc
mov eax, dword [ebp - 0x2a4]
lea ecx, [ebp - 0x2a4]
push esi
call dword [eax + 4]
inc esi
test eax, eax
jne 0x1001e5a0
xor ebx, ebx
push 0
push 0
push 0
lea eax, [ebp - 0x288]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x1001e595
test eax, eax
je 0x1001e662
lea eax, [ebp - 0x288]
push eax
mov eax, dword [ebp - 0x2a4]
lea ecx, [ebp - 0x2a4]
call dword [eax]
test eax, eax
jne 0x1001e61b
lea eax, [ebp - 0x288]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x288]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [ebp - 0x284]
cmp eax, 0x118
ja 0x1001e636
je 0x1001e652
cmp eax, 0xf
je 0x1001e652
cmp eax, 0xa0
jmp 0x1001e63b
cmp eax, 0x200
je 0x1001e652
mov ecx, 1
xor eax, eax
test ecx, ecx
mov ebx, ecx
cmove eax, esi
mov esi, eax
jmp 0x1001e595
xor ecx, ecx
xor eax, eax
test ecx, ecx
cmove eax, esi
mov esi, eax
jmp 0x1001e595
mov edi, dword [ebp - 0x280]
mov ecx, 0x1010fc1c
call fcn.1001abd0
push dword [ebp - 0x26c]
call sub.gdiplus.dll_GdiplusShutdown
mov ebx, dword [0x1010f16c]
add ebx, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x1010fc54]
test esi, esi
je 0x1001e6df
cmp dword [esi + 4], 0
jle 0x1001e6ad
mov eax, dword [esi]
push dword [eax]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, dword [0x1010fc54]
test esi, esi
je 0x1001e6df
mov eax, dword [esi]
test eax, eax
je 0x1001e6c6
push eax
call fcn.1009fff0
add esp, 4
mov dword [esi], 0
push 0xc
push esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.1007a455
add esp, 8
push ebx
mov dword [0x1010fc54], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [0x1010fc50]
test esi, esi
je 0x1001e738
mov eax, dword [esi]
test eax, eax
je 0x1001e70f
push eax
call fcn.1009fff0
add esp, 4
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1001e726
push eax
call fcn.1009fff0
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
mov dword [esi + 8], 0
call fcn.1007a455
add esp, 8
mov ecx, 0x1010fc1c
call fcn.1001b230
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x2b8]
call fcn.1000eec0
lea ecx, [ebp - 0x2c0]
call fcn.1003be10
mov edx, dword [ebp - 0x2c8]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001e77c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x338]
call fcn.10017650
mov eax, dword [ebp - 0x294]
test eax, eax
je 0x1001e7a4
push eax
call fcn.1009fff0
add esp, 4
mov dword [ebp - 0x294], 0
mov eax, dword [ebp - 0x2a0]
mov dword [ebp - 0x290], 0
mov dword [ebp - 0x28c], 0
test eax, eax
je 0x1001e7d5
push eax
call fcn.1009fff0
add esp, 4
mov dword [ebp - 0x2a0], 0
mov dword [ebp - 0x29c], 0
mov dword [ebp - 0x298], 0
jmp 0x1001d9c1
mov dword [ebp - 4], 6
lea eax, [ebp - 0x254]
push eax
call fcn.10050934
add esp, 4
mov dword [ebp - 4], 0xffffffff
test al, al
je 0x1001e853
jmp 0x1001e83d
mov dword [ebp - 4], 2
jmp 0x1001e7f5
call fcn.1009ff09
push 0x80004005
call fcn.1000ca10
push 0x80004005
call fcn.1000ca10
call fcn.1009ff09
call fcn.1009ff09
sub esp, 8
lea eax, [ebp - 0x254]
mov ecx, esp
push eax
call fcn.10008bf0
call fcn.10010920
call fcn.10051645
int3