Function at 0x3f6fb0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41967d
mov eax, dword fs:[0]
push eax
sub esp, 0x3d0
mov eax, dword [0x470cb8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x394], ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x39c]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push ecx
push ebx
push ebx
push ebx
mov dword [ebp - 0x3b0], eax
mov eax, dword [edi + 0x9c]
push 0x3d7028
push eax
mov dword [ebp - 0x38c], eax
mov dword [ebp - 0x390], ebx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov dword [ebp - 0x36c], eax
test eax, eax
jne 0x423def
mov eax, dword [ebp - 0x39c]
test eax, eax
je 0x423df3
mov esi, dword [0x3d2f5c]
xor ecx, ecx
shr eax, 1
mov edx, 2
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
mov ecx, esi
call dword [0x473670]
call esi
mov esi, eax
test esi, esi
je 0x423dfd
lea eax, [ebp - 0x39c]
push eax
push esi
push ebx
push ebx
push 0x3d7028
push dword [ebp - 0x38c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov dword [ebp - 0x36c], eax
test eax, eax
jne 0x423e07
mov eax, dword [ebp - 0x39c]
mov ebx, esi
shr eax, 1
xor ecx, ecx
mov dword [ebp - 0x390], ebx
mov dword [ebp - 0x36c], ecx
mov word [esi + eax*2], cx
push 0
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, dword [edi + 0x9c]
mov dword [ebp - 0x38c], 4
test eax, eax
je 0x423e4b
lea ecx, [ebp - 0x38c]
push ecx
lea ecx, [ebp - 0x3d8]
push ecx
lea ecx, [ebp - 0x398]
push ecx
push 0
push 0x3d7094
push eax
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x42435d
cmp dword [ebp - 0x398], 4
jne 0x42435d
push eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, dword [edi + 0x9c]
mov dword [ebp - 0x380], 4
test eax, eax
je 0x423e52
lea ecx, [ebp - 0x380]
push ecx
lea ecx, [ebp - 0x3a8]
push ecx
lea ecx, [ebp - 0x37c]
push ecx
push 0
push 0x3d7080
push eax
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x424340
cmp dword [ebp - 0x37c], 4
jne 0x424340
push eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, dword [edi + 0x9c]
mov dword [ebp - 0x378], 4
test eax, eax
je 0x423e59
lea ecx, [ebp - 0x378]
push ecx
lea ecx, [ebp - 0x3ac]
push ecx
lea ecx, [ebp - 0x3cc]
push ecx
push 0
push 0x3d7070
push eax
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x424340
cmp dword [ebp - 0x3cc], 4
jne 0x424340
push eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, dword [edi + 0x9c]
mov dword [ebp - 0x3d0], 4
test eax, eax
je 0x423e60
lea ecx, [ebp - 0x3d0]
push ecx
lea ecx, [ebp - 0x3a0]
push ecx
lea ecx, [ebp - 0x3d4]
push ecx
push 0
push 0x3d7060
push eax
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x423e64
cmp dword [ebp - 0x3d4], 4
jne 0x423e64
mov esi, dword [ebp - 0x3a0]
mov dword [ebp - 0x398], esi
push 0
mov dword [ebp - 0x38c], 0
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, dword [edi + 0x9c]
mov dword [ebp - 0x3a4], 4
test eax, eax
je 0x423e89
lea ecx, [ebp - 0x3a4]
push ecx
lea ecx, [ebp - 0x370]
push ecx
lea ecx, [ebp - 0x384]
push ecx
push 0
push 0x3d704c
push eax
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x423e8d
cmp dword [ebp - 0x384], 4
jne 0x423e8d
mov eax, dword [ebp - 0x370]
mov dword [ebp - 0x38c], eax
mov dword [ebp - 4], 1
mov eax, dword [0x471724]
mov esi, dword [eax + 0xc]
cmp esi, fcn.003f8b50
jne 0x423eb6
mov ecx, 0x471724
call fcn.003f8b50
lea esi, [eax + 0x10]
mov dword [ebp - 0x388], esi
mov byte [ebp - 4], 2
test ebx, ebx
je 0x423f0f
test ebx, 0xffff0000
je 0x423eca
mov edi, ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x3f72d0
sub edi, ecx
sar edi, 1
je 0x423f0f
mov eax, dword [esi - 0xc]
mov edx, ebx
mov dword [ebp - 0x384], eax
sub edx, esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
sar edx, 1
or eax, ecx
mov dword [ebp - 0x370], edx
jge 0x3f7323
push edi
lea ecx, [ebp - 0x388]
call fcn.003f89b0
mov esi, dword [ebp - 0x388]
mov edx, dword [ebp - 0x370]
lea ecx, [edi + edi]
push ecx
cmp edx, dword [ebp - 0x384]
jbe 0x423ef4
push ebx
push ecx
push esi
call dword [sym.imp.msvcrt.dll_memcpy_s]
add esp, 0x10
test edi, edi
js 0x423f05
cmp edi, dword [esi - 8]
jg 0x423f05
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
mov edx, dword [ebp - 0x394]
lea edi, [esi - 0x10]
mov byte [ebp - 4], 3
mov dword [ebp - 0x378], edi
mov eax, dword [edx + 4]
sub eax, 0x10
mov dword [ebp - 0x3a0], eax
cmp edi, eax
je 0x3f7400
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
mov dword [ebp - 0x3a4], ecx
jl 0x423ff9
mov ecx, dword [edi]
mov dword [ebp - 0x370], ecx
cmp ecx, dword [eax]
jne 0x423ff9
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x384], eax
cmp eax, fcn.003f9030
jne 0x423f5e
call fcn.003f9030
cmp dword [edi + 0xc], 0
mov ecx, eax
lea eax, [edi + 0xc]
mov dword [ebp - 0x37c], ecx
jl 0x423f77
cmp ecx, dword [edi]
jne 0x423f77
lock inc dword [eax]
mov ecx, dword [ebp - 0x3a4]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jle 0x423fce
mov ecx, dword [ebp - 0x394]
lea eax, [edi + 0x10]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x394]
add eax, 8
mov dword [ebp - 0x1d0], 0
mov dword [ebp - 0x374], eax
lea eax, [ebp - 0x1b8]
mov dword [ebp - 0x1c4], eax
xor eax, eax
mov dword [ebp - 0x1c0], 0xc1
mov dword [ebp - 0x1bc], 0
mov word [ebp - 0x1b8], ax
mov dword [ebp - fcn.003fbe10], 0x3d1508
mov byte [ebp - 4], 4
mov edi, dword [0x471304]
mov dword [ebp - 0x1d4], 0x3d14e8
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [ebp - 0x370], eax
cmp eax, fcn.003f9950
jne 0x42400a
mov ecx, edi
call fcn.003f9950
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1c8]
push 0xffffffffffffffff
push 0
push esi
mov edi, dword [eax + 0x10]
cmp edi, fcn.003f9650
jne 0x42401f
lea ecx, [ebp - 0x1c8]
call fcn.003f9650
mov edi, dword [ebp - 0x1bc]
lea eax, [ebp - 0x1c8]
xor ecx, ecx
mov dword [ebp - 0x3b8], edi
mov dword [ebp - 0x3bc], ecx
mov dword [ebp - 0x3b4], eax
test edi, edi
je 0x3f751d
mov eax, dword [eax + 4]
movzx eax, word [eax + ecx*2]
push eax
call dword [sym.imp.msvcrt.dll_iswspace]
add esp, 4
test eax, eax
jne 0x424034
mov ebx, dword [ebp - 0x3bc]
lea esp, [esp]
test edi, edi
je 0x3f7517
mov eax, dword [ebp - 0x3b4]
lea ecx, [ebx + edi]
mov eax, dword [eax + 4]
movzx eax, word [eax + ecx*2 - 2]
push eax
call dword [sym.imp.msvcrt.dll_iswspace]
add esp, 4
test eax, eax
jne 0x424058
mov ebx, dword [ebp - 0x390]
cmp edi, dword [ebp - 0x1bc]
jne 0x424083
xor eax, eax
lea ecx, [ebp - 0x1d4]
mov dword [ebp - 0x32], eax
mov dword [ebp - 0x2e], eax
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1c], eax
mov eax, 0x7f
mov word [ebp - 0x1e], ax
call fcn.003f9080
test byte [ebp - 0x1e], 2
je 0x42410d
lea ecx, [ebp - 0x1d4]
call fcn.003f9080
movzx edi, word [ebp - 0x30]
movzx ecx, word [ebp - 0x32]
mov dword [ebp - 0x37c], edi
lea eax, [ecx + edi]
cmp eax, ecx
jb 0x3f7952
cmp eax, dword [ebp - 0x1bc]
ja 0x4241b6
lea eax, [ebp - 0x1c8]
add ecx, ecx
mov dword [ebp - 0x378], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x384], ecx
add ecx, eax
mov dword [ebp - 0x370], ecx
cmp edi, 1
ja 0x3f792b
mov eax, edi
mov dword [ebp - 0x380], edi
push eax
push 0x3d7048
push edi
push ecx
push 1
push 0x800
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_CompareStringW]
cmp eax, 2
jne 0x3f793b
cmp edi, 1
jae 0x3f75e6
test edi, edi
jne 0x3f7884
mov edx, dword [ebp - 0x374]
mov edi, 0x3d7030
mov eax, dword [edx]
sub edi, eax
sar edi, 1
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x370], ecx
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 9
or eax, ecx
jge 0x3f7621
push 9
mov ecx, edx
call fcn.003f89b0
mov edx, dword [ebp - 0x374]
mov ecx, dword [edx]
push 0x12
cmp edi, dword [ebp - 0x370]
jbe 0x42420b
push 0x3d7030
push 0x12
push ecx
call dword [sym.imp.msvcrt.dll_memcpy_s]
mov ecx, dword [ebp - 0x374]
add esp, 0x10
mov eax, dword [ecx]
cmp dword [eax - 8], 9
jl 0x423f05
mov dword [eax - 0xc], 9
mov eax, dword [ecx]
xor ecx, ecx
mov word [eax + 0x12], cx
mov byte [ebp - 4], 8
mov edi, dword [0x471304]
mov dword [ebp - 0x1d4], 0x3d14e8
mov dword [ebp - 0x1d0], 0xc0000001
mov eax, dword [edi]
mov eax, dword [eax + 8]
mov dword [ebp - 0x370], eax
cmp eax, fcn.003f9970
jne 0x42421d
mov ecx, edi
call fcn.003f9970
mov eax, dword [ebp - 0x1c4]
mov dword [ebp - fcn.00407280], 0x3d1574
mov dword [ebp - fcn.003fbe10], 0x3d1508
test eax, eax
je 0x3f76ca
lea ecx, [ebp - 0x1b8]
cmp eax, ecx
jne 0x424232
mov dword [ebp - fcn.00407280], 0x3d1558
mov eax, dword [ebp - 0x394]
add esi, 0xfffffff0
mov ecx, dword [ebp - 0x3d8]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x3a8]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0x3ac]
mov dword [eax + 0x18], ecx
mov ecx, dword [ebp - 0x398]
mov dword [eax + 0x24], ecx
mov ecx, dword [ebp - 0x38c]
mov dword [eax + 0x14], 1
mov dword [eax + 0x1c], 1
mov dword [eax + 0x20], 0
mov dword [eax + 0x28], ecx
or eax, 0xffffffff
mov byte [ebp - 4], 1
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jle 0x424241
mov eax, dword [0x471724]
mov esi, dword [eax + 0xc]
cmp esi, fcn.003f8b50
jne 0x42425a
mov ecx, 0x471724
call fcn.003f8b50
lea esi, [eax + 0x10]
mov dword [ebp - 0x374], esi
mov byte [ebp - 4], 9
test ebx, ebx
je 0x4242a9
test ebx, 0xffff0000
je 0x42426e
mov edi, ebx
lea ecx, [edi + 2]
jmp 0x3f7780
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x3f7780
sub edi, ecx
sar edi, 1
je 0x4242a9
mov eax, dword [esi - 0xc]
mov ecx, ebx
mov dword [ebp - 0x3a8], eax
sub ecx, esi
mov eax, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub eax, edi
sar ecx, 1
or eax, edx
mov dword [ebp - 0x3ac], ecx
jge 0x3f77d3
push edi
lea ecx, [ebp - 0x374]
call fcn.003f89b0
mov esi, dword [ebp - 0x374]
mov ecx, dword [ebp - 0x3ac]
lea edx, [edi + edi]
push edx
cmp ecx, dword [ebp - 0x3a8]
jbe 0x424298
push ebx
push edx
push esi
call dword [sym.imp.msvcrt.dll_memcpy_s]
add esp, 0x10
test edi, edi
js 0x423f05
cmp edi, dword [esi - 8]
jg 0x423f05
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
mov ecx, dword [ebp - 0x3b0]
lea eax, [ebp - 0x374]
push eax
mov byte [ebp - 4], 0xa
call fcn.003f83a0
mov byte [ebp - 4], 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jle 0x4242f8
mov eax, dword [ebp - 0x36c]
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x3f7866
mov dword [ebp - 4], 0xc
mov esi, dword [0x3d2f60]
mov ecx, esi
push ebx
call dword [0x473670]
call esi
mov eax, dword [ebp - 0x36c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040b590
mov esp, ebp
pop ebp
ret 8
xor ecx, ecx
lea eax, [edi + 1]
mov edi, dword [0x3d2f5c]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
mov ecx, edi
call dword [0x473670]
call edi
mov edx, eax
mov dword [ebp - 0x380], edx
test edx, edx
je 0x4241fb
mov eax, dword [ebp - 0x378]
mov edi, dword [ebp - 0x37c]
add edi, edi
push edi
mov eax, dword [eax + 4]
add eax, dword [ebp - 0x384]
push eax
push edx
call fcn.0040bd06
mov ecx, dword [ebp - 0x380]
add esp, 0xc
mov edx, ecx
xor eax, eax
mov word [edi + ecx], ax
lea edi, [edx + 2]
jmp 0x3f78f0
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x3f78f0
sub edx, edi
sar edx, 1
push edx
push ecx
mov ecx, dword [ebp - 0x374]
call fcn.003f61f0
mov byte [ebp - 4], 7
push dword [ebp - 0x380]
mov edi, dword [0x3d2f60]
mov ecx, edi
call dword [0x473670]
call edi
jmp 0x3f7663
mov eax, 1
mov dword [ebp - 0x380], eax
jmp 0x3f75bb
sub eax, 1
je 0x3f75de
sub eax, 2
je 0x3f75de
jmp 0x4241cd
call fcn.004354b2
int3
jg 0x423e30
jmp 0x423e40
mov eax, 0x8000ffff
jmp 0x3f7866
mov eax, 0x8007000e
jmp 0x3f7866
mov dword [ebp - 4], 0
push esi
mov esi, dword [0x3d2f60]
mov ecx, esi
call dword [0x473670]
call esi
mov eax, dword [ebp - 0x36c]
mov dword [ebp - 4], 0xffffffff
test eax, eax
jle 0x423e40
movzx eax, ax
or eax, 0x80070000
mov dword [ebp - 0x36c], eax
test eax, eax
js 0x3f7866
jmp 0x3f70ae
push 6
jmp 0x42435e
push 6
jmp 0x424341
push 6
jmp 0x424341
push 6
jmp 0x423e65
push eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
jne 0x42433a
mov dword [ebp - 0x398], 0
jmp 0x3f7217
push 6
jmp 0x423e8e
push eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
je 0x3f7285
test eax, eax
je 0x3f7285
jg 0x424378
jmp 0x424380
mov ecx, esi
call dword [0x473670]
mov ecx, 0x471724
call esi
jmp 0x3f72aa
movzx edi, bx
mov ecx, edi
call fcn.004386d4
test eax, eax
je 0x3f7359
push edi
push eax
lea ecx, [ebp - 0x388]
call fcn.00439c13
mov esi, dword [ebp - 0x388]
jmp 0x3f7359
lea eax, [esi + edx*2]
push eax
push ecx
push esi
call dword [sym.imp.msvcrt.dll_memmove_s]
jmp 0x3f733c
mov ecx, 0x80070057
call fcn.0042fefb
cmp dword [esi - 0xc], 0
lea ecx, [esi - 0x10]
mov edi, dword [ecx]
je 0x3f7359
mov eax, dword [ecx + 0xc]
shr eax, 0x1f
test al, al
je 0x423f3a
push 0
lea ecx, [ebp - 0x388]
call fcn.003f24c0
jmp 0x3f7359
call fcn.003f9900
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x473670]
mov ecx, edi
call esi
lea esi, [eax + 0x10]
mov dword [ebp - 0x388], esi
jmp 0x3f7359
mov ecx, eax
call dword [0x473670]
mov ecx, dword [ebp - 0x370]
call dword [ebp - 0x384]
jmp 0x3f73be
mov eax, dword [ecx]
lea edx, [edi + 4]
push 2
push dword [edx]
mov dword [ebp - 0x370], edx
mov edi, dword [eax]
mov ecx, edi
call dword [0x473670]
mov ecx, dword [ebp - 0x37c]
call edi
mov edi, eax
mov dword [ebp - 0x378], edi
test edi, edi
jne 0x423fa9
call fcn.0043b9e4
mov ecx, dword [ebp - 0x370]
mov eax, dword [ecx]
mov dword [edi + 4], eax
mov eax, dword [ecx]
inc eax
add eax, eax
push eax
push esi
push eax
lea eax, [edi + 0x10]
push eax
call dword [sym.imp.msvcrt.dll_memcpy_s]
add esp, 0x10
jmp 0x3f73de
mov ecx, dword [ebp - 0x3a0]
push ecx
mov ebx, dword [ecx]
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x473670]
mov ecx, ebx
call edi
mov ebx, dword [ebp - 0x390]
mov edi, dword [ebp - 0x378]
jmp 0x3f73f4
push dword [esi - 0xc]
lea ecx, [edx + 4]
push esi
call fcn.003f61f0
jmp 0x3f7400
mov ecx, eax
call dword [0x473670]
mov ecx, edi
call dword [ebp - 0x370]
jmp 0x3f747d
mov ecx, edi
call dword [0x473670]
lea ecx, [ebp - 0x1c8]
call edi
jmp 0x3f74a6
push 1
lea ecx, [ebp - 0x3bc]
call fcn.0043f114
mov edi, dword [ebp - 0x3b8]
mov ecx, dword [ebp - 0x3bc]
mov eax, dword [ebp - 0x3b4]
jmp 0x3f74c6
lea eax, [edi - 1]
cmp eax, edi
jbe 0x424076
mov ecx, dword [ebp + 4]
mov edx, 0x3ca
push 0xce
push 0x3d97a4
call fcn.00436213
mov edi, eax
mov dword [ebp - 0x3b8], edi
jmp 0x3f74f0
lea eax, [ebp - 0x3bc]
push eax
lea eax, [ebp - 0x358]
push eax
push 0xc1
lea ecx, [ebp - 0x368]
call fcn.003f9fc3
mov dword [ebp - fcn.003fbe10], 0x3d1508
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x1c8]
push 0xffffffffffffffff
push 0
push dword [ebp - 0x364]
mov edi, dword [eax + 0x10]
mov ecx, edi
call dword [0x473670]
lea ecx, [ebp - 0x1c8]
call edi
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x364]
mov dword [ebp - fcn.003fbe10], 0x3d1508
test eax, eax
je 0x4240fe
lea ecx, [ebp - 0x358]
cmp eax, ecx
je 0x4240fe
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov dword [ebp - fcn.00407280], 0x3d1558
jmp 0x3f7529
movzx eax, word [ebp - 0x30]
movzx ecx, word [ebp - 0x32]
add ecx, eax
movzx eax, word [ebp - 0x2a]
cmp eax, ecx
jbe 0x3f755b
lea ecx, [ebp - 0x1d4]
call fcn.003f9230
cmp word [ebp - 0x34], 1
jne 0x42417b
lea ecx, [ebp - 0x1d4]
call fcn.003f9080
test byte [ebp - 0x1e], 2
jne 0x42417b
cmp dword [ebp - 0x18], 0x50
jne 0x42417b
lea eax, [ebp - 0x3c8]
push eax
lea ecx, [ebp - 0x1d4]
call fcn.003ff125
mov edi, dword [ebp - 0x3c4]
mov eax, dword [ebp - 0x3c0]
mov ecx, dword [ebp - 0x3c8]
mov dword [ebp - 0x37c], edi
jmp 0x3f7591
movzx ecx, word [ebp - 0x32]
movzx eax, word [ebp - 0x2a]
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0x3c8]
push eax
lea ecx, [ebp - 0x1c8]
call fcn.003fc701
mov edi, dword [ebp - 0x3c4]
mov eax, dword [ebp - 0x3c0]
mov ecx, dword [ebp - 0x3c8]
mov dword [ebp - 0x37c], edi
jmp 0x3f7591
mov ecx, dword [ebp + 4]
mov edx, 0x44c
push 0xce
push 0x3d97a4
call fcn.00436213
mov eax, dword [ebp - 0x380]
cmp edi, eax
jge 0x4241d9
mov eax, edi
push eax
push 0x3d7048
push dword [ebp - 0x370]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x3f75de
jmp 0x3f75d9
lea ecx, [ebp - 0x1d4]
call fcn.003f20ba
jmp 0x3f76d4
lea eax, [ecx + edi*2]
push eax
push 0x12
push ecx
call dword [sym.imp.msvcrt.dll_memmove_s]
jmp 0x3f763f
mov ecx, eax
call dword [0x473670]
mov ecx, edi
call dword [ebp - 0x370]
jmp 0x3f769e
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
jmp 0x3f76ca
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x473670]
mov ecx, edi
call esi
jmp 0x3f7734
mov ecx, esi
call dword [0x473670]
mov ecx, 0x471724
call esi
jmp 0x3f7752
movzx edi, bx
mov ecx, edi
call fcn.004386d4
test eax, eax
je 0x3f7809
push edi
push eax
lea ecx, [ebp - 0x374]
call fcn.00439c13
mov esi, dword [ebp - 0x374]
jmp 0x3f7809
lea eax, [esi + ecx*2]
push eax
push edx
push esi
call dword [sym.imp.msvcrt.dll_memmove_s]
jmp 0x3f77ec
cmp dword [esi - 0xc], 0
lea ecx, [esi - 0x10]
mov edi, dword [ecx]
je 0x3f7809
mov eax, dword [ecx + 0xc]
shr eax, 0x1f
test al, al
je 0x4242d4
push 0
lea ecx, [ebp - 0x374]
call fcn.003f24c0
jmp 0x3f7809
call fcn.003f9900
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x473670]
mov ecx, edi
call esi
lea esi, [eax + 0x10]
mov dword [ebp - 0x374], esi
jmp 0x3f7809
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x473670]
mov ecx, edi
call esi
jmp 0x3f7837
test eax, eax
jg 0x424378
jmp 0x424380
push eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [ebp - 0x36c], eax
test eax, eax
jle 0x3f7844
jmp 0x424378
push eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [ebp - 0x36c], eax
test eax, eax
jle 0x3f7844
movzx eax, ax
or eax, 0x80070000
mov dword [ebp - 0x36c], eax
jmp 0x3f7844