Function at 0x1000d020
Capabilities:
Get file version info
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002d613
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x10041008]
xor eax, ebp
mov dword [ebp - 0x18], 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 - 0x160], ecx
mov esi, dword [ebp + 8]
call fcn.1000ddd0
mov ecx, esi
call fcn.10013770
test al, al
je 0x1000dca2
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x1000d086
mov eax, dword [esi]
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
mov dword [ebp - 0x164], ebx
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x1000dca2
push 0x10041670
push ebx
call fcn.1002af75
add esp, 8
mov edi, eax
test edi, edi
je 0x1000dca2
cmp dword [esi + 0x14], 8
jb 0x1000d0c8
mov esi, dword [esi]
push edi
push ebx
push dword [ebp - 0x38]
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x1000d0e6
push edi
call fcn.1002af70
add esp, 4
jmp 0x1000dca2
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x15c]
push eax
push 0x100361a8
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov ebx, dword [ebp - 0x160]
test eax, eax
je 0x1000d134
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x1000d134
cmp dword [ebp - 0x1c], 0x34
jne 0x1000d134
push 0x34
push eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor esi, esi
mov dword [ebp - 0x160], esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x15c]
push eax
push str.VarFileInfoTranslation
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1000d1fc
cmp dword [ebp - 0x15c], esi
je 0x1000d1fc
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call esi
movzx edx, ax
mov ecx, dword [ebp - 0x15c]
mov eax, dword [ebp - 0x1c]
add eax, ecx
cmp ecx, eax
jae 0x1000d18d
cmp word [ecx], dx
je 0x1000d1f2
add ecx, 4
cmp ecx, eax
jb 0x1000d181
push 1
lea eax, [ebp - 0x160]
push eax
call esi
movzx eax, ax
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x15c]
call fcn.1000dcd0
test al, al
jne 0x1000d1f6
push 1
lea eax, [ebp - 0x160]
push eax
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x15c]
call fcn.1000dcd0
test al, al
jne 0x1000d1f6
push 1
lea eax, [ebp - 0x160]
push eax
push 9
push dword [ebp - 0x1c]
push dword [ebp - 0x15c]
call fcn.1000dcd0
test al, al
jne 0x1000d1f6
mov eax, dword [ebp - 0x15c]
mov esi, dword [eax]
jmp 0x1000d1fc
mov esi, dword [ecx]
jmp 0x1000d1fc
mov esi, dword [ebp - 0x160]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
xor eax, eax
mov word [ebp - 0x34], ax
mov dword [ebp - 4], 2
mov eax, esi
shr eax, 0x10
push eax
movzx eax, si
push eax
push str.StringFileInfo_04X_04X_
lea eax, [ebp - 0x34]
push eax
call fcn.10011eb0
push 0x10036300
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x158]
call fcn.1000def0
add esp, 0x14
mov byte [ebp - 4], 3
lea eax, [ebp - 0x158]
cmp dword [ebp - 0x144], 8
cmovae eax, dword [ebp - 0x158]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x15c]
push ecx
push eax
push edi
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
call esi
test eax, eax
je 0x1000d2bd
mov edx, dword [ebp - 0x15c]
test edx, edx
je 0x1000d2bd
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x160], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000d2a0
sub ecx, dword [ebp - 0x160]
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 0x34]
call fcn.10002920
push 0x10036318
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x140]
call fcn.1000def0
add esp, 4
mov byte [ebp - 4], 4
lea eax, [ebp - 0x140]
cmp dword [ebp - 0x12c], 8
cmovae eax, dword [ebp - 0x140]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x15c]
push ecx
push eax
push edi
call esi
test eax, eax
je 0x1000d330
mov edx, dword [ebp - 0x15c]
test edx, edx
je 0x1000d330
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x160], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000d313
sub ecx, dword [ebp - 0x160]
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 0x4c]
call fcn.10002920
push 0x10036338
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x128]
call fcn.1000def0
add esp, 4
mov byte [ebp - 4], 5
lea eax, [ebp - 0x128]
cmp dword [ebp - 0x114], 8
cmovae eax, dword [ebp - 0x128]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x15c]
push ecx
push eax
push edi
call esi
test eax, eax
je 0x1000d3a3
mov edx, dword [ebp - 0x15c]
test edx, edx
je 0x1000d3a3
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x160], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000d386
sub ecx, dword [ebp - 0x160]
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 0x64]
call fcn.10002920
push 0x10036350
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x110]
call fcn.1000def0
add esp, 4
mov byte [ebp - 4], 6
lea eax, [ebp - 0x110]
cmp dword [ebp - 0xfc], 8
cmovae eax, dword [ebp - 0x110]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x15c]
push ecx
push eax
push edi
call esi
test eax, eax
je 0x1000d41d
mov edx, dword [ebp - 0x15c]
test edx, edx
je 0x1000d41d
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x160], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000d400
sub ecx, dword [ebp - 0x160]
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 0x7c]
call fcn.10002920
push 0x1003636c
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0xf8]
call fcn.1000def0
add esp, 4
mov byte [ebp - 4], 7
lea eax, [ebp - 0xf8]
cmp dword [ebp - 0xe4], 8
cmovae eax, dword [ebp - 0xf8]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x15c]
push ecx
push eax
push edi
call esi
test eax, eax
je 0x1000d493
mov edx, dword [ebp - 0x15c]
test edx, edx
je 0x1000d493
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x160], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000d473
sub ecx, dword [ebp - 0x160]
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 0x94]
call fcn.10002920
push str.OriginalFileName
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0xe0]
call fcn.1000def0
add esp, 4
mov byte [ebp - 4], 8
lea eax, [ebp - 0xe0]
cmp dword [ebp - 0xcc], 8
cmovae eax, dword [ebp - 0xe0]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x15c]
push ecx
push eax
push edi
call esi
test eax, eax
je 0x1000d510
mov edx, dword [ebp - 0x15c]
test edx, edx
je 0x1000d510
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x160], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000d4f0
sub ecx, dword [ebp - 0x160]
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 0xac]
call fcn.10002920
push 0x100363b0
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0xc8]
call fcn.1000def0
add esp, 4
mov byte [ebp - 4], 9
lea eax, [ebp - 0xc8]
cmp dword [ebp - 0xb4], 8
cmovae eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x15c]
push ecx
push eax
push edi
call esi
test eax, eax
je 0x1000d586
mov edx, dword [ebp - 0x15c]
test edx, edx
je 0x1000d586
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x160], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000d566
sub ecx, dword [ebp - 0x160]
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 0xc4]
call fcn.10002920
push 0x100363c8
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0xb0]
call fcn.1000def0
add esp, 4
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0xb0]
cmp dword [ebp - 0x9c], 8
cmovae eax, dword [ebp - 0xb0]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x15c]
push ecx
push eax
push edi
call esi
test eax, eax
je 0x1000d600
mov edx, dword [ebp - 0x15c]
test edx, edx
je 0x1000d600
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x160], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000d5e0
sub ecx, dword [ebp - 0x160]
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 0xdc]
call fcn.10002920
push 0x100363e8
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x98]
call fcn.1000def0
add esp, 4
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x98]
cmp dword [ebp - 0x84], 8
cmovae eax, dword [ebp - 0x98]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x15c]
push ecx
push eax
push edi
call esi
test eax, eax
je 0x1000d676
mov edx, dword [ebp - 0x15c]
test edx, edx
je 0x1000d676
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x160], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000d656
sub ecx, dword [ebp - 0x160]
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 0xf4]
call fcn.10002920
push str.LegalTrademarks
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x80]
call fcn.1000def0
add esp, 4
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x80]
cmp dword [ebp - 0x6c], 8
cmovae eax, dword [ebp - 0x80]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x15c]
push ecx
push eax
push edi
call esi
test eax, eax
je 0x1000d6e0
mov edx, dword [ebp - 0x15c]
test edx, edx
je 0x1000d6e0
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x160], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000d6c0
sub ecx, dword [ebp - 0x160]
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 0x10c]
call fcn.10002920
push str.PrivateBuild
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x68]
call fcn.1000def0
add esp, 4
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x68]
cmp dword [ebp - 0x54], 8
cmovae eax, dword [ebp - 0x68]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x15c]
push ecx
push eax
push edi
call esi
test eax, eax
je 0x1000d750
mov edx, dword [ebp - 0x15c]
test edx, edx
je 0x1000d750
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x160], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000d730
sub ecx, dword [ebp - 0x160]
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 0x124]
call fcn.10002920
push str.SpecialBuild
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x50]
call fcn.1000def0
add esp, 4
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x50]
cmp dword [ebp - 0x3c], 8
cmovae eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x15c]
push ecx
push eax
push edi
call esi
test eax, eax
je 0x1000d7b0
mov edx, dword [ebp - 0x15c]
test edx, edx
je 0x1000d7b0
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000d794
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 0x13c]
call fcn.10002920
push edi
call fcn.1002af70
add esp, 4
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x1000d7f9
lea edx, [edx*2 + 2]
mov ecx, dword [ebp - 0x50]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000d7ef
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000d7ef
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002a5aa
add esp, 8
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
xor eax, eax
mov word [ebp - 0x50], ax
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x54]
cmp edx, 8
jb 0x1000d84d
lea edx, [edx*2 + 2]
mov ecx, dword [ebp - 0x68]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000d843
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000d843
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002a5aa
add esp, 8
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
xor eax, eax
mov word [ebp - 0x68], ax
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x6c]
cmp edx, 8
jb 0x1000d8a1
lea edx, [edx*2 + 2]
mov ecx, dword [ebp - 0x80]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000d897
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000d897
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002a5aa
add esp, 8
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 7
xor eax, eax
mov word [ebp - 0x80], ax
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x84]
cmp edx, 8
jb 0x1000d8fb
lea edx, [edx*2 + 2]
mov ecx, dword [ebp - 0x98]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000d8f1
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000d8f1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002a5aa
add esp, 8
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 7
xor eax, eax
mov word [ebp - 0x98], ax
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x9c]
cmp edx, 8
jb 0x1000d95e
lea edx, [edx*2 + 2]
mov ecx, dword [ebp - 0xb0]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000d954
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000d954
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002a5aa
add esp, 8
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 7
xor eax, eax
mov word [ebp - 0xb0], ax
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0xb4]
cmp edx, 8
jb 0x1000d9c1
lea edx, [edx*2 + 2]
mov ecx, dword [ebp - 0xc8]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000d9b7
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000d9b7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002a5aa
add esp, 8
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 7
xor eax, eax
mov word [ebp - 0xc8], ax
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0xcc]
cmp edx, 8
jb 0x1000da24
lea edx, [edx*2 + 2]
mov ecx, dword [ebp - 0xe0]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000da1a
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000da1a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002a5aa
add esp, 8
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 7
xor eax, eax
mov word [ebp - 0xe0], ax
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0xe4]
cmp edx, 8
jb 0x1000da87
lea edx, [edx*2 + 2]
mov ecx, dword [ebp - 0xf8]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000da7d
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000da7d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002a5aa
add esp, 8
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 7
xor eax, eax
mov word [ebp - 0xf8], ax
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0xfc]
cmp edx, 8
jb 0x1000daea
lea edx, [edx*2 + 2]
mov ecx, dword [ebp - 0x110]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000dae0
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000dae0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002a5aa
add esp, 8
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 7
xor eax, eax
mov word [ebp - 0x110], ax
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x114]
cmp edx, 8
jb 0x1000db4d
lea edx, [edx*2 + 2]
mov ecx, dword [ebp - 0x128]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000db43
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000db43
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002a5aa
add esp, 8
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 7
xor eax, eax
mov word [ebp - 0x128], ax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x12c]
cmp edx, 8
jb 0x1000dbb0
lea edx, [edx*2 + 2]
mov ecx, dword [ebp - 0x140]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000dba6
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000dba6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002a5aa
add esp, 8
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 7
xor eax, eax
mov word [ebp - 0x140], ax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x144]
cmp edx, 8
jb 0x1000dc13
lea edx, [edx*2 + 2]
mov ecx, dword [ebp - 0x158]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000dc09
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000dc09
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002a5aa
add esp, 8
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], 7
xor eax, eax
mov word [ebp - 0x158], ax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x20]
cmp edx, 8
jb 0x1000dc73
lea edx, [edx*2 + 2]
mov ecx, dword [ebp - 0x34]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000dc69
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000dc69
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002a5aa
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
xor eax, eax
mov word [ebp - 0x34], ax
mov al, 1
jmp 0x1000dca4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.1002a569
mov esp, ebp
pop ebp
ret 4