Function at 0x100042a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100233c7
mov eax, dword fs:[0]
push eax
sub esp, 0x3bc
mov eax, dword [0x10030008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
xor edi, edi
test edx, edx
je 0x10004fce
cmp word [edx], di
je 0x10004fce
mov ecx, edx
mov dword [ebp - 0x2b0], edi
xor eax, eax
mov dword [ebp - 0x2ac], edi
mov dword [ebp - 0x2b0], edi
mov dword [ebp - 0x2ac], 7
mov word [ebp - 0x2c0], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004310
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c0]
call fcn.10006940
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x3a8]
call fcn.10008e00
mov byte [ebp - 4], 1
lea eax, [ebp - 0x3a8]
push eax
lea eax, [ebp - 0x2c0]
mov ecx, 0x100307a0
push eax
call fcn.1000b920
mov esi, dword [ebp - 0x2c0]
test al, al
jne 0x1000436e
mov edi, 2
jmp 0x10004f5b
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10004605
push str.drivers
lea ecx, [ebp - 0x25c]
call fcn.100067d0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.100067d0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x25c]
push eax
lea edx, [ebp - 0x234]
lea ecx, [ebp - 0x28c]
call fcn.100196b0
add esp, 4
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x10004429
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000441f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000441f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002167a
add esp, 8
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x248]
cmp edx, 8
jb 0x1000448c
mov ecx, dword [ebp - 0x25c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10004482
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10004482
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002167a
add esp, 8
xor eax, eax
mov dword [ebp - 0x24c], 0
mov word [ebp - 0x25c], ax
lea edx, [ebp - 0x28c]
lea eax, [ebp - 0x390]
mov dword [ebp - 0x248], 7
push eax
lea ecx, [ebp - 0x274]
call fcn.100196b0
add esp, 4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x28c]
push eax
call fcn.10006760
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x260]
cmp edx, 8
jb 0x1000451a
mov ecx, dword [ebp - 0x274]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10004510
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10004510
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002167a
add esp, 8
xor eax, eax
mov dword [ebp - 0x264], 0
xorps xmm0, xmm0
mov dword [ebp - 0x260], 7
lea ecx, [ebp - 0x244]
mov word [ebp - 0x274], ax
movups xmmword [ebp - 0x244], xmm0
call fcn.10010980
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x1000456c
cmp dword [ebp - 0x238], 0
jne 0x1000456c
lea ecx, [ebp - 0x238]
push ecx
call eax
lea ecx, [ebp - 0x28c]
call fcn.10018790
test al, al
mov ecx, 4
mov eax, dword [ebp - 0x240]
cmove edi, ecx
test eax, eax
je 0x10004593
push dword [ebp - 0x238]
call eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x244]
call fcn.10010be0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x278]
cmp edx, 8
jb 0x100045e8
mov ecx, dword [ebp - 0x28c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100045de
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100045de
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002167a
add esp, 8
xor eax, eax
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x278], 7
mov word [ebp - 0x28c], ax
cmp dword [ebp - 0x2ac], 8
lea ecx, [ebp - 0x2c0]
mov edx, str.2345bg
cmovae ecx, esi
call fcn.100167a0
test al, al
jne 0x10004f5b
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
call fcn.10017240
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2a8]
push str.SYSTEMCurrentControlSetServices_
call fcn.100067d0
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x2c0]
push eax
lea edx, [ebp - 0x2a8]
lea ecx, [ebp - 0x274]
call fcn.10006ce0
add esp, 4
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x2a8]
push eax
call fcn.10006760
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x260]
cmp edx, 8
jb 0x100046c5
mov ecx, dword [ebp - 0x274]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100046bb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100046bb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002167a
add esp, 8
xor eax, eax
mov dword [ebp - 0x264], 0
mov word [ebp - 0x274], ax
lea eax, [ebp - 0x2a8]
push eax
push ecx
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x260], 7
call fcn.10017430
test al, al
jne 0x10004704
or edi, 0x1000
jmp 0x10004ed4
push 0x100276f0
lea ecx, [ebp - 0x234]
call fcn.100067d0
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x2a8]
push eax
push ecx
lea ecx, [ebp - 0x21c]
call fcn.100174e0
mov byte [ebp - 0x3a9], al
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x10004784
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10004774
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10004774
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002167a
mov al, byte [ebp - 0x3a9]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], cx
test al, al
je 0x100047ab
or edi, 0x2000
push 0x100276d8
lea ecx, [ebp - 0x234]
call fcn.100067d0
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x3b0]
push eax
lea eax, [ebp - 0x234]
mov dword [ebp - 0x3b0], 0
push eax
lea eax, [ebp - 0x2a8]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x21c]
call fcn.10017750
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x10004834
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000482a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000482a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002167a
add esp, 8
xor eax, eax
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
mov eax, dword [ebp - 0x3b0]
mov dword [ebp - 0x220], 7
cmp eax, dword [ebp - 0x328]
je 0x10004865
or edi, 0x10000
push 0x100276e4
lea ecx, [ebp - 0x234]
call fcn.100067d0
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x3b0]
push eax
lea eax, [ebp - 0x234]
mov dword [ebp - 0x3b0], 0
push eax
lea eax, [ebp - 0x2a8]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x21c]
call fcn.10017750
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x100048ee
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100048e4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100048e4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002167a
add esp, 8
xor eax, eax
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
mov eax, dword [ebp - 0x3b0]
mov dword [ebp - 0x220], 7
cmp eax, dword [ebp - 0x330]
je 0x1000491f
or edi, 0x20000
xor eax, eax
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x278], 7
mov word [ebp - 0x28c], ax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x234]
push str.system32drivers_
call fcn.100067d0
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x390]
push eax
lea edx, [ebp - 0x234]
lea ecx, [ebp - 0x274]
call fcn.10006ce0
add esp, 4
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x234]
push eax
call fcn.10006760
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x260]
cmp edx, 8
jb 0x100049d9
mov ecx, dword [ebp - 0x274]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100049cf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100049cf
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002167a
add esp, 8
xor eax, eax
mov dword [ebp - 0x264], 0
xorps xmm0, xmm0
mov dword [ebp - 0x238], eax
movq qword [ebp - 0x240], xmm0
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x260], 7
mov word [ebp - 0x274], ax
mov dword [ebp - 0x290], eax
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], eax
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x25c]
push 0x100276c4
call fcn.100067d0
mov byte [ebp - 4], 0x13
mov esi, dword [ebp - 0x21c]
mov dword [ebp - 0x2c4], 0
mov dword [ebp - 0x23c], 0
mov byte [ebp - 0x3a9], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x10004b07
push 0x10029b7c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10004b07
mov edx, dword [esi]
lea ecx, [ebp - 0x2a8]
or edx, 0x20019
lea esi, [ebp - 0x2c4]
cmp dword [ebp - 0x294], 8
push esi
cmovae ecx, dword [ebp - 0x2a8]
push edx
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call eax
test eax, eax
jne 0x10004b07
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x2c4]
lea ecx, [ebp - 0x21c]
call fcn.100180c0
mov ecx, dword [ebp - 0x21c]
mov byte [ebp - 0x3a9], al
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x10004aff
push 0x10029ba0
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10004aff
mov ecx, dword [ebp - 0x2c4]
test ecx, ecx
je 0x10004aff
push ecx
call eax
mov esi, dword [ebp - 0x240]
jmp 0x10004b09
xor esi, esi
mov byte [ebp - 4], 0x12
mov edx, dword [ebp - 0x248]
cmp edx, 8
jb 0x10004b4f
mov ecx, dword [ebp - 0x25c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10004b45
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10004b45
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002167a
add esp, 8
xor eax, eax
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 7
mov word [ebp - 0x25c], ax
cmp byte [ebp - 0x3a9], al
je 0x10004b9e
cmp dword [ebp - 0x290], 2
jne 0x10004b9e
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004b82
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28c]
call fcn.10006940
lea edx, [ebp - 0x234]
lea ecx, [ebp - 0x28c]
call fcn.100166c0
test eax, eax
je 0x10004bb9
or edi, 0x40000
xor eax, eax
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 7
mov word [ebp - 0x25c], ax
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x274]
push dword [ebp - 0x30c]
call fcn.100067d0
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x3c8]
push str.Group
call fcn.100067d0
mov byte [ebp - 4], 0x16
xor eax, eax
mov word [ebp - 0x25c], ax
lea ecx, [ebp - 0x21c]
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x24c], 0
push eax
lea eax, [ebp - 0x3c8]
push eax
lea eax, [ebp - 0x2a8]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.10017650
mov byte [ebp - 4], 0x15
mov edx, dword [ebp - 0x3b4]
cmp edx, 8
jb 0x10004c95
mov ecx, dword [ebp - 0x3c8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10004c8b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10004c8b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002167a
add esp, 8
xor eax, eax
mov dword [ebp - 0x3b8], 0
lea edx, [ebp - 0x274]
mov dword [ebp - 0x3b4], 7
lea ecx, [ebp - 0x25c]
mov word [ebp - 0x3c8], ax
call fcn.100166c0
test eax, eax
je 0x10004ccd
or edi, 0x80000
cmp dword [ebp - 0x34c], 8
lea ecx, [ebp - 0x360]
cmovae ecx, dword [ebp - 0x360]
call fcn.10002a30
test eax, eax
jne 0x10004cf0
or edi, 0x100000
mov byte [ebp - 4], 0x14
mov edx, dword [ebp - 0x260]
cmp edx, 8
jb 0x10004d36
mov ecx, dword [ebp - 0x274]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10004d2c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10004d2c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002167a
add esp, 8
xor eax, eax
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x260], 7
mov word [ebp - 0x274], ax
mov byte [ebp - 4], 0x12
mov edx, dword [ebp - 0x248]
cmp edx, 8
jb 0x10004d99
mov ecx, dword [ebp - 0x25c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10004d8f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10004d8f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002167a
add esp, 8
xor eax, eax
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 7
mov word [ebp - 0x25c], ax
mov byte [ebp - 4], 0x10
test esi, esi
je 0x10004e0e
mov ecx, dword [ebp - 0x238]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x10004de6
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10004de6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.1002167a
add esp, 8
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x10004e54
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10004e4a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10004e4a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002167a
add esp, 8
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x278]
cmp edx, 8
jb 0x10004eb7
mov ecx, dword [ebp - 0x28c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10004ead
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10004ead
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002167a
add esp, 8
xor eax, eax
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x278], 7
mov word [ebp - 0x28c], ax
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x294]
cmp edx, 8
jb 0x10004f1a
mov ecx, dword [ebp - 0x2a8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10004f10
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10004f10
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002167a
add esp, 8
xor eax, eax
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x294], 7
mov word [ebp - 0x2a8], ax
mov byte [ebp - 4], 1
push 8
push dword [ebp - 0x21c]
call fcn.1002167a
mov esi, dword [ebp - 0x2c0]
add esp, 8
mov dword [ebp - 0x21c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3a8]
call fcn.10004ff0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2ac]
cmp eax, 8
jb 0x10004fad
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x10004fa3
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10004fa3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.1002167a
add esp, 8
xor eax, eax
mov dword [ebp - 0x2b0], 0
mov word [ebp - 0x2c0], ax
mov eax, edi
mov dword [ebp - 0x2ac], 7
jmp 0x10004fd3
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10021639
mov esp, ebp
pop ebp
ret 4