Function at 0x10004be0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100242d7
mov eax, dword fs:[0]
push eax
sub esp, 0x3bc
mov eax, dword [0x10031008]
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 0x1000590e
cmp word [edx], di
je 0x1000590e
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 0x10004c50
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c0]
call fcn.10007130
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x3a8]
call fcn.100095f0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x3a8]
push eax
lea eax, [ebp - 0x2c0]
mov ecx, 0x100317a0
push eax
call fcn.1000c2c0
mov esi, dword [ebp - 0x2c0]
test al, al
jne 0x10004cae
mov edi, 2
jmp 0x1000589b
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 0x10004f45
push str.drivers
lea ecx, [ebp - 0x25c]
call fcn.10006fc0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.10006fc0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x25c]
push eax
lea edx, [ebp - 0x234]
lea ecx, [ebp - 0x28c]
call fcn.1001a3e0
add esp, 4
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x10004d69
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10004d5f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10004d5f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002251a
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 0x10004dcc
mov ecx, dword [ebp - 0x25c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10004dc2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10004dc2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002251a
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.1001a3e0
add esp, 4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x28c]
push eax
call fcn.10006f50
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x260]
cmp edx, 8
jb 0x10004e5a
mov ecx, dword [ebp - 0x274]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10004e50
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10004e50
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002251a
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.10011770
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x10004eac
cmp dword [ebp - 0x238], 0
jne 0x10004eac
lea ecx, [ebp - 0x238]
push ecx
call eax
lea ecx, [ebp - 0x28c]
call fcn.100194a0
test al, al
mov ecx, 4
mov eax, dword [ebp - 0x240]
cmove edi, ecx
test eax, eax
je 0x10004ed3
push dword [ebp - 0x238]
call eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x244]
call fcn.100119d0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x278]
cmp edx, 8
jb 0x10004f28
mov ecx, dword [ebp - 0x28c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10004f1e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10004f1e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002251a
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.100174a0
test al, al
jne 0x1000589b
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
call fcn.10017f50
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2a8]
push str.SYSTEMCurrentControlSetServices_
call fcn.10006fc0
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x2c0]
push eax
lea edx, [ebp - 0x2a8]
lea ecx, [ebp - 0x274]
call fcn.10007480
add esp, 4
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x2a8]
push eax
call fcn.10006f50
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x260]
cmp edx, 8
jb 0x10005005
mov ecx, dword [ebp - 0x274]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10004ffb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10004ffb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002251a
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.10018140
test al, al
jne 0x10005044
or edi, 0x1000
jmp 0x10005814
push 0x100286f0
lea ecx, [ebp - 0x234]
call fcn.10006fc0
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.100181f0
mov byte [ebp - 0x3a9], al
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x100050c4
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100050b4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100050b4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002251a
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 0x100050eb
or edi, 0x2000
push 0x100286d8
lea ecx, [ebp - 0x234]
call fcn.10006fc0
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.10018460
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x10005174
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000516a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000516a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002251a
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 0x100051a5
or edi, 0x10000
push 0x100286e4
lea ecx, [ebp - 0x234]
call fcn.10006fc0
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.10018460
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x1000522e
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10005224
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10005224
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002251a
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 0x1000525f
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.10006fc0
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x390]
push eax
lea edx, [ebp - 0x234]
lea ecx, [ebp - 0x274]
call fcn.10007480
add esp, 4
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x234]
push eax
call fcn.10006f50
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x260]
cmp edx, 8
jb 0x10005319
mov ecx, dword [ebp - 0x274]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000530f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000530f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002251a
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 0x100286c4
call fcn.10006fc0
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 0x10005447
push 0x1002a6a4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10005447
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 0x10005447
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.10018dd0
mov ecx, dword [ebp - 0x21c]
mov byte [ebp - 0x3a9], al
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x1000543f
push 0x1002a6c8
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000543f
mov ecx, dword [ebp - 0x2c4]
test ecx, ecx
je 0x1000543f
push ecx
call eax
mov esi, dword [ebp - 0x240]
jmp 0x10005449
xor esi, esi
mov byte [ebp - 4], 0x12
mov edx, dword [ebp - 0x248]
cmp edx, 8
jb 0x1000548f
mov ecx, dword [ebp - 0x25c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10005485
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10005485
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002251a
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 0x100054de
cmp dword [ebp - 0x290], 2
jne 0x100054de
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100054c2
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28c]
call fcn.10007130
lea edx, [ebp - 0x234]
lea ecx, [ebp - 0x28c]
call fcn.100173c0
test eax, eax
je 0x100054f9
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.10006fc0
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x3c8]
push str.Group
call fcn.10006fc0
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.10018360
mov byte [ebp - 4], 0x15
mov edx, dword [ebp - 0x3b4]
cmp edx, 8
jb 0x100055d5
mov ecx, dword [ebp - 0x3c8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100055cb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100055cb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002251a
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.100173c0
test eax, eax
je 0x1000560d
or edi, 0x80000
cmp dword [ebp - 0x34c], 8
lea ecx, [ebp - 0x360]
cmovae ecx, dword [ebp - 0x360]
call fcn.10002bc0
test eax, eax
jne 0x10005630
or edi, 0x100000
mov byte [ebp - 4], 0x14
mov edx, dword [ebp - 0x260]
cmp edx, 8
jb 0x10005676
mov ecx, dword [ebp - 0x274]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000566c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000566c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002251a
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 0x100056d9
mov ecx, dword [ebp - 0x25c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100056cf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100056cf
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002251a
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 0x1000574e
mov ecx, dword [ebp - 0x238]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x10005726
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10005726
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.1002251a
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 0x10005794
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000578a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000578a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002251a
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 0x100057f7
mov ecx, dword [ebp - 0x28c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100057ed
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100057ed
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002251a
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 0x1000585a
mov ecx, dword [ebp - 0x2a8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10005850
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10005850
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002251a
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.1002251a
mov esi, dword [ebp - 0x2c0]
add esp, 8
mov dword [ebp - 0x21c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3a8]
call fcn.10005930
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2ac]
cmp eax, 8
jb 0x100058ed
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x100058e3
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100058e3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.1002251a
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 0x10005913
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.100224d9
mov esp, ebp
pop ebp
ret 4