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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b443
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x4c7008]
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.00406800
mov ecx, esi
call fcn.0046c030
test al, al
je 0x406702
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x405ae6
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 0x406702
push 0x4c7890
push ebx
call fcn.004996bf
add esp, 8
mov edi, eax
test edi, edi
je 0x406702
cmp dword [esi + 0x14], 8
jb 0x405b28
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 0x405b46
push edi
call fcn.004996ba
add esp, 4
jmp 0x406702
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x15c]
push eax
push 0x4abd3c
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov ebx, dword [ebp - 0x160]
test eax, eax
je 0x405b94
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x405b94
cmp dword [ebp - 0x1c], 0x34
jne 0x405b94
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 0x4abd40
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x405c5c
cmp dword [ebp - 0x15c], esi
je 0x405c5c
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 0x405bed
cmp word [ecx], dx
je 0x405c52
add ecx, 4
cmp ecx, eax
jb 0x405be1
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.00406730
test al, al
jne 0x405c56
push 1
lea eax, [ebp - 0x160]
push eax
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x15c]
call fcn.00406730
test al, al
jne 0x405c56
push 1
lea eax, [ebp - 0x160]
push eax
push 9
push dword [ebp - 0x1c]
push dword [ebp - 0x15c]
call fcn.00406730
test al, al
jne 0x405c56
mov eax, dword [ebp - 0x15c]
mov esi, dword [eax]
jmp 0x405c5c
mov esi, dword [ecx]
jmp 0x405c5c
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.0046ade0
push 0x4abda8
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x158]
call fcn.004069d0
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 0x405d1d
mov edx, dword [ebp - 0x15c]
test edx, edx
je 0x405d1d
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 0x405d00
sub ecx, dword [ebp - 0x160]
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 0x34]
call fcn.004027a0
push 0x4abdc0
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x140]
call fcn.004069d0
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 0x405d90
mov edx, dword [ebp - 0x15c]
test edx, edx
je 0x405d90
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x160], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405d73
sub ecx, dword [ebp - 0x160]
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 0x4c]
call fcn.004027a0
push 0x4abde0
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x128]
call fcn.004069d0
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 0x405e03
mov edx, dword [ebp - 0x15c]
test edx, edx
je 0x405e03
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x160], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405de6
sub ecx, dword [ebp - 0x160]
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 0x64]
call fcn.004027a0
push 0x4abdf8
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x110]
call fcn.004069d0
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 0x405e7d
mov edx, dword [ebp - 0x15c]
test edx, edx
je 0x405e7d
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 0x405e60
sub ecx, dword [ebp - 0x160]
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 0x7c]
call fcn.004027a0
push 0x4abe14
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0xf8]
call fcn.004069d0
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 0x405ef3
mov edx, dword [ebp - 0x15c]
test edx, edx
je 0x405ef3
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x160], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405ed3
sub ecx, dword [ebp - 0x160]
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 0x94]
call fcn.004027a0
push str.OriginalFileName
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0xe0]
call fcn.004069d0
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 0x405f70
mov edx, dword [ebp - 0x15c]
test edx, edx
je 0x405f70
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 0x405f50
sub ecx, dword [ebp - 0x160]
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 0xac]
call fcn.004027a0
push 0x4abe58
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0xc8]
call fcn.004069d0
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 0x405fe6
mov edx, dword [ebp - 0x15c]
test edx, edx
je 0x405fe6
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x160], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405fc6
sub ecx, dword [ebp - 0x160]
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 0xc4]
call fcn.004027a0
push 0x4abe70
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0xb0]
call fcn.004069d0
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 0x406060
mov edx, dword [ebp - 0x15c]
test edx, edx
je 0x406060
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 0x406040
sub ecx, dword [ebp - 0x160]
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 0xdc]
call fcn.004027a0
push 0x4abe90
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x98]
call fcn.004069d0
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 0x4060d6
mov edx, dword [ebp - 0x15c]
test edx, edx
je 0x4060d6
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x160], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4060b6
sub ecx, dword [ebp - 0x160]
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 0xf4]
call fcn.004027a0
push str.LegalTrademarks
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x80]
call fcn.004069d0
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 0x406140
mov edx, dword [ebp - 0x15c]
test edx, edx
je 0x406140
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x160], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406120
sub ecx, dword [ebp - 0x160]
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 0x10c]
call fcn.004027a0
push str.PrivateBuild
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x68]
call fcn.004069d0
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 0x4061b0
mov edx, dword [ebp - 0x15c]
test edx, edx
je 0x4061b0
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 0x406190
sub ecx, dword [ebp - 0x160]
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 0x124]
call fcn.004027a0
push str.SpecialBuild
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x50]
call fcn.004069d0
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 0x406210
mov edx, dword [ebp - 0x15c]
test edx, edx
je 0x406210
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4061f4
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 0x13c]
call fcn.004027a0
push edi
call fcn.004996ba
add esp, 4
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x406259
lea edx, [edx*2 + 2]
mov ecx, dword [ebp - 0x50]
mov eax, ecx
cmp edx, 0x1000
jb 0x40624f
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40624f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004991e4
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 0x4062ad
lea edx, [edx*2 + 2]
mov ecx, dword [ebp - 0x68]
mov eax, ecx
cmp edx, 0x1000
jb 0x4062a3
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4062a3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004991e4
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 0x406301
lea edx, [edx*2 + 2]
mov ecx, dword [ebp - 0x80]
mov eax, ecx
cmp edx, 0x1000
jb 0x4062f7
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4062f7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004991e4
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 0x40635b
lea edx, [edx*2 + 2]
mov ecx, dword [ebp - 0x98]
mov eax, ecx
cmp edx, 0x1000
jb 0x406351
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406351
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004991e4
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 0x4063be
lea edx, [edx*2 + 2]
mov ecx, dword [ebp - 0xb0]
mov eax, ecx
cmp edx, 0x1000
jb 0x4063b4
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4063b4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004991e4
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 0x406421
lea edx, [edx*2 + 2]
mov ecx, dword [ebp - 0xc8]
mov eax, ecx
cmp edx, 0x1000
jb 0x406417
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406417
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004991e4
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 0x406484
lea edx, [edx*2 + 2]
mov ecx, dword [ebp - 0xe0]
mov eax, ecx
cmp edx, 0x1000
jb 0x40647a
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40647a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004991e4
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 0x4064e7
lea edx, [edx*2 + 2]
mov ecx, dword [ebp - 0xf8]
mov eax, ecx
cmp edx, 0x1000
jb 0x4064dd
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4064dd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004991e4
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 0x40654a
lea edx, [edx*2 + 2]
mov ecx, dword [ebp - 0x110]
mov eax, ecx
cmp edx, 0x1000
jb 0x406540
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406540
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004991e4
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 0x4065ad
lea edx, [edx*2 + 2]
mov ecx, dword [ebp - 0x128]
mov eax, ecx
cmp edx, 0x1000
jb 0x4065a3
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4065a3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004991e4
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 0x406610
lea edx, [edx*2 + 2]
mov ecx, dword [ebp - 0x140]
mov eax, ecx
cmp edx, 0x1000
jb 0x406606
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406606
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004991e4
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 0x406673
lea edx, [edx*2 + 2]
mov ecx, dword [ebp - 0x158]
mov eax, ecx
cmp edx, 0x1000
jb 0x406669
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406669
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004991e4
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 0x4066d3
lea edx, [edx*2 + 2]
mov ecx, dword [ebp - 0x34]
mov eax, ecx
cmp edx, 0x1000
jb 0x4066c9
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4066c9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004991e4
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 0x406704
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.004991a3
mov esp, ebp
pop ebp
ret 4