Function at 0x402230
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411d91
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x418040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x198], edi
mov dword [ebp - 0x1b8], edi
mov dword [ebp - 0x1ac], 0
mov dword [ebp - 4], 1
xorps xmm0, xmm0
push 0
movups xmmword [edi], xmm0
push 0x414299
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.004100d0
mov eax, dword [str._b_t_n_v_]
xor edx, edx
mov dword [ebp - 0x198], eax
mov al, byte [0x41459c]
mov dword [ebp - 0x1ac], 1
mov byte [ebp - 0x194], al
mov dword [ebp - 0x19c], edx
nop dword [eax]
nop dword [eax + eax]
mov eax, 0x2f684bdb
mul edx
mov eax, dword [ebp - 0x19c]
sub eax, edx
shr eax, 1
add eax, edx
mov edx, dword [ebp - 0x19c]
shr eax, 5
mov cl, dl
movsx eax, al
imul eax, eax, 0x36
sub cl, al
add cl, 0x38
xor byte [ebp + edx - 0x198], cl
inc edx
mov dword [ebp - 0x19c], edx
cmp edx, 5
jl 0x4022d0
xorps xmm0, xmm0
mov dword [ebp - 0x180], 0
lea ecx, [ebp - 0x198]
mov dword [ebp - 0x17c], 0
movups xmmword [ebp - 0x190], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402333
sub ecx, edx
lea eax, [ebp - 0x198]
push ecx
push eax
lea ecx, [ebp - 0x190]
call fcn.004100d0
mov byte [ebp - 4], 2
xor edx, edx
mov eax, dword [str._b_t_n_n_]
mov dword [ebp - 0x198], eax
mov al, byte [0x4149cc]
mov byte [ebp - 0x194], al
mov dword [ebp - 0x19c], edx
mov eax, 0x2f684bdb
mul edx
mov eax, dword [ebp - 0x19c]
sub eax, edx
shr eax, 1
add eax, edx
mov edx, dword [ebp - 0x19c]
shr eax, 5
mov cl, dl
movsx eax, al
imul eax, eax, 0x36
sub cl, al
add cl, 0x38
xor byte [ebp + edx - 0x198], cl
inc edx
mov dword [ebp - 0x19c], edx
cmp edx, 5
jl 0x402371
xorps xmm0, xmm0
mov dword [ebp - 0x168], 0
lea ecx, [ebp - 0x198]
mov dword [ebp - 0x164], 0
movups xmmword [ebp - 0x178], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4023d4
sub ecx, edx
lea eax, [ebp - 0x198]
push ecx
push eax
lea ecx, [ebp - 0x178]
call fcn.004100d0
mov byte [ebp - 4], 3
xor edx, edx
mov eax, dword [str._b_t_v_v_]
mov dword [ebp - 0x198], eax
mov al, byte [0x4143a0]
mov byte [ebp - 0x194], al
mov dword [ebp - 0x19c], edx
mov eax, 0x2f684bdb
mul edx
mov eax, dword [ebp - 0x19c]
sub eax, edx
shr eax, 1
add eax, edx
mov edx, dword [ebp - 0x19c]
shr eax, 5
mov cl, dl
movsx eax, al
imul eax, eax, 0x36
sub cl, al
add cl, 0x38
xor byte [ebp + edx - 0x198], cl
inc edx
mov dword [ebp - 0x19c], edx
cmp edx, 5
jl 0x402412
xorps xmm0, xmm0
mov dword [ebp - 0x150], 0
lea ecx, [ebp - 0x198]
mov dword [ebp - 0x14c], 0
movups xmmword [ebp - 0x160], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402475
sub ecx, edx
lea eax, [ebp - 0x198]
push ecx
push eax
lea ecx, [ebp - 0x160]
call fcn.004100d0
mov byte [ebp - 4], 4
xor edx, edx
mov eax, dword [str._b_t_v_n_]
mov dword [ebp - 0x198], eax
mov al, byte [0x41452c]
mov byte [ebp - 0x194], al
mov dword [ebp - 0x19c], edx
mov eax, 0x2f684bdb
mul edx
mov eax, dword [ebp - 0x19c]
sub eax, edx
shr eax, 1
add eax, edx
mov edx, dword [ebp - 0x19c]
shr eax, 5
mov cl, dl
movsx eax, al
imul eax, eax, 0x36
sub cl, al
add cl, 0x38
xor byte [ebp + edx - 0x198], cl
inc edx
mov dword [ebp - 0x19c], edx
cmp edx, 5
jl 0x4024b3
xorps xmm0, xmm0
mov dword [ebp - 0x138], 0
lea ecx, [ebp - 0x198]
mov dword [ebp - 0x134], 0
movups xmmword [ebp - 0x148], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402516
sub ecx, edx
lea eax, [ebp - 0x198]
push ecx
push eax
lea ecx, [ebp - 0x148]
call fcn.004100d0
mov byte [ebp - 4], 5
xor edx, edx
mov eax, dword [str._b_b_n_v_]
mov dword [ebp - 0x198], eax
mov al, byte [0x4148f4]
mov byte [ebp - 0x194], al
mov dword [ebp - 0x19c], edx
nop dword [eax]
nop dword [eax + eax]
mov eax, 0x2f684bdb
mul edx
mov eax, dword [ebp - 0x19c]
sub eax, edx
shr eax, 1
add eax, edx
mov edx, dword [ebp - 0x19c]
shr eax, 5
mov cl, dl
movsx eax, al
imul eax, eax, 0x36
sub cl, al
add cl, 0x38
xor byte [ebp + edx - 0x198], cl
inc edx
mov dword [ebp - 0x19c], edx
cmp edx, 5
jl 0x402560
xorps xmm0, xmm0
mov dword [ebp - 0x120], 0
lea ecx, [ebp - 0x198]
mov dword [ebp - 0x11c], 0
movups xmmword [ebp - 0x130], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4025c3
sub ecx, edx
lea eax, [ebp - 0x198]
push ecx
push eax
lea ecx, [ebp - 0x130]
call fcn.004100d0
mov byte [ebp - 4], 6
xor edx, edx
mov eax, dword [str._b_b_n_n_]
mov dword [ebp - 0x198], eax
mov al, byte [0x4144a4]
mov byte [ebp - 0x194], al
mov dword [ebp - 0x19c], edx
mov eax, 0x2f684bdb
mul edx
mov eax, dword [ebp - 0x19c]
sub eax, edx
shr eax, 1
add eax, edx
mov edx, dword [ebp - 0x19c]
shr eax, 5
mov cl, dl
movsx eax, al
imul eax, eax, 0x36
sub cl, al
add cl, 0x38
xor byte [ebp + edx - 0x198], cl
inc edx
mov dword [ebp - 0x19c], edx
cmp edx, 5
jl 0x402601
xorps xmm0, xmm0
mov dword [ebp - 0x108], 0
lea ecx, [ebp - 0x198]
mov dword [ebp - 0x104], 0
movups xmmword [ebp - 0x118], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402664
sub ecx, edx
lea eax, [ebp - 0x198]
push ecx
push eax
lea ecx, [ebp - 0x118]
call fcn.004100d0
mov byte [ebp - 4], 7
xor edx, edx
mov eax, dword [str._b_b_v_v_]
mov dword [ebp - 0x198], eax
mov al, byte [0x414574]
mov byte [ebp - 0x194], al
mov dword [ebp - 0x19c], edx
mov eax, 0x2f684bdb
mul edx
mov eax, dword [ebp - 0x19c]
sub eax, edx
shr eax, 1
add eax, edx
mov edx, dword [ebp - 0x19c]
shr eax, 5
mov cl, dl
movsx eax, al
imul eax, eax, 0x36
sub cl, al
add cl, 0x38
xor byte [ebp + edx - 0x198], cl
inc edx
mov dword [ebp - 0x19c], edx
cmp edx, 5
jl 0x4026a2
xorps xmm0, xmm0
mov dword [ebp - 0xf0], 0
lea ecx, [ebp - 0x198]
mov dword [ebp - 0xec], 0
movups xmmword [ebp - 0x100], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402705
sub ecx, edx
lea eax, [ebp - 0x198]
push ecx
push eax
lea ecx, [ebp - 0x100]
call fcn.004100d0
mov byte [ebp - 4], 8
xor edx, edx
mov eax, dword [str._b_b_v_n_]
mov dword [ebp - 0x198], eax
mov al, byte [0x41461c]
mov byte [ebp - 0x194], al
mov dword [ebp - 0x19c], edx
mov eax, 0x2f684bdb
mul edx
mov eax, dword [ebp - 0x19c]
sub eax, edx
shr eax, 1
add eax, edx
mov edx, dword [ebp - 0x19c]
shr eax, 5
mov cl, dl
movsx eax, al
imul eax, eax, 0x36
sub cl, al
add cl, 0x38
xor byte [ebp + edx - 0x198], cl
inc edx
mov dword [ebp - 0x19c], edx
cmp edx, 5
jl 0x402743
xorps xmm0, xmm0
mov dword [ebp - 0xd8], 0
lea ecx, [ebp - 0x198]
mov dword [ebp - 0xd4], 0
movups xmmword [ebp - 0xe8], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4027a6
sub ecx, edx
lea eax, [ebp - 0x198]
push ecx
push eax
lea ecx, [ebp - 0xe8]
call fcn.004100d0
mov byte [ebp - 4], 9
xor edx, edx
mov eax, dword [str._t_t_n_v_]
mov dword [ebp - 0x198], eax
mov al, byte [0x414884]
mov byte [ebp - 0x194], al
mov dword [ebp - 0x19c], edx
nop dword [eax]
nop dword [eax + eax]
mov eax, 0x2f684bdb
mul edx
mov eax, dword [ebp - 0x19c]
sub eax, edx
shr eax, 1
add eax, edx
mov edx, dword [ebp - 0x19c]
shr eax, 5
mov cl, dl
movsx eax, al
imul eax, eax, 0x36
sub cl, al
add cl, 0x38
xor byte [ebp + edx - 0x198], cl
inc edx
mov dword [ebp - 0x19c], edx
cmp edx, 5
jl 0x4027f0
xorps xmm0, xmm0
mov dword [ebp - 0xc0], 0
lea ecx, [ebp - 0x198]
mov dword [ebp - 0xbc], 0
movups xmmword [ebp - 0xd0], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402853
sub ecx, edx
lea eax, [ebp - 0x198]
push ecx
push eax
lea ecx, [ebp - 0xd0]
call fcn.004100d0
mov byte [ebp - 4], 0xa
xor edx, edx
mov eax, dword [str._t_t_n_n_]
mov dword [ebp - 0x198], eax
mov al, byte [0x4145b4]
mov byte [ebp - 0x194], al
mov dword [ebp - 0x19c], edx
mov eax, 0x2f684bdb
mul edx
mov eax, dword [ebp - 0x19c]
sub eax, edx
shr eax, 1
add eax, edx
mov edx, dword [ebp - 0x19c]
shr eax, 5
mov cl, dl
movsx eax, al
imul eax, eax, 0x36
sub cl, al
add cl, 0x38
xor byte [ebp + edx - 0x198], cl
inc edx
mov dword [ebp - 0x19c], edx
cmp edx, 5
jl 0x402891
xorps xmm0, xmm0
mov dword [ebp - 0xa8], 0
lea ecx, [ebp - 0x198]
mov dword [ebp - 0xa4], 0
movups xmmword [ebp - 0xb8], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4028f4
sub ecx, edx
lea eax, [ebp - 0x198]
push ecx
push eax
lea ecx, [ebp - 0xb8]
call fcn.004100d0
mov byte [ebp - 4], 0xb
xor edx, edx
mov eax, dword [str._t_t_v_v_]
mov dword [ebp - 0x198], eax
mov al, byte [0x41460c]
mov byte [ebp - 0x194], al
mov dword [ebp - 0x19c], edx
mov eax, 0x2f684bdb
mul edx
mov eax, dword [ebp - 0x19c]
sub eax, edx
shr eax, 1
add eax, edx
mov edx, dword [ebp - 0x19c]
shr eax, 5
mov cl, dl
movsx eax, al
imul eax, eax, 0x36
sub cl, al
add cl, 0x38
xor byte [ebp + edx - 0x198], cl
inc edx
mov dword [ebp - 0x19c], edx
cmp edx, 5
jl 0x402932
xorps xmm0, xmm0
mov dword [ebp - 0x90], 0
lea ecx, [ebp - 0x198]
mov dword [ebp - 0x8c], 0
movups xmmword [ebp - 0xa0], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402995
sub ecx, edx
lea eax, [ebp - 0x198]
push ecx
push eax
lea ecx, [ebp - 0xa0]
call fcn.004100d0
mov byte [ebp - 4], 0xc
xor edx, edx
mov eax, dword [str._t_t_v_n_]
mov dword [ebp - 0x198], eax
mov al, byte [0x414680]
mov byte [ebp - 0x194], al
mov dword [ebp - 0x19c], edx
mov eax, 0x2f684bdb
mul edx
mov eax, dword [ebp - 0x19c]
sub eax, edx
shr eax, 1
add eax, edx
mov edx, dword [ebp - 0x19c]
shr eax, 5
mov cl, dl
movsx eax, al
imul eax, eax, 0x36
sub cl, al
add cl, 0x38
xor byte [ebp + edx - 0x198], cl
inc edx
mov dword [ebp - 0x19c], edx
cmp edx, 5
jl 0x4029d3
xorps xmm0, xmm0
mov dword [ebp - 0x78], 0
lea ecx, [ebp - 0x198]
mov dword [ebp - 0x74], 0
movups xmmword [ebp - 0x88], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402a30
sub ecx, edx
lea eax, [ebp - 0x198]
push ecx
push eax
lea ecx, [ebp - 0x88]
call fcn.004100d0
mov byte [ebp - 4], 0xd
xor edx, edx
mov eax, dword [str._t_b_n_v_]
mov dword [ebp - 0x198], eax
mov al, byte [0x414844]
mov byte [ebp - 0x194], al
mov dword [ebp - 0x19c], edx
nop
mov eax, 0x2f684bdb
mul edx
mov eax, dword [ebp - 0x19c]
sub eax, edx
shr eax, 1
add eax, edx
mov edx, dword [ebp - 0x19c]
shr eax, 5
mov cl, dl
movsx eax, al
imul eax, eax, 0x36
sub cl, al
add cl, 0x38
xor byte [ebp + edx - 0x198], cl
inc edx
mov dword [ebp - 0x19c], edx
cmp edx, 5
jl 0x402a70
xorps xmm0, xmm0
mov dword [ebp - 0x60], 0
lea ecx, [ebp - 0x198]
mov dword [ebp - 0x5c], 0
movups xmmword [ebp - 0x70], xmm0
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402ad0
sub ecx, edx
lea eax, [ebp - 0x198]
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.004100d0
mov byte [ebp - 4], 0xe
xor edx, edx
mov eax, dword [str._t_b_n_n_]
mov dword [ebp - 0x198], eax
mov al, byte [0x414998]
mov byte [ebp - 0x194], al
mov dword [ebp - 0x19c], edx
nop dword [eax + eax]
mov eax, 0x2f684bdb
mul edx
mov eax, dword [ebp - 0x19c]
sub eax, edx
shr eax, 1
add eax, edx
mov edx, dword [ebp - 0x19c]
shr eax, 5
mov cl, dl
movsx eax, al
imul eax, eax, 0x36
sub cl, al
add cl, 0x38
xor byte [ebp + edx - 0x198], cl
inc edx
mov dword [ebp - 0x19c], edx
cmp edx, 5
jl 0x402b10
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x198]
mov dword [ebp - 0x44], 0
movups xmmword [ebp - 0x58], xmm0
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402b70
sub ecx, edx
lea eax, [ebp - 0x198]
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.004100d0
mov byte [ebp - 4], 0xf
xor edx, edx
mov eax, dword [0x414664]
mov dword [ebp - 0x198], eax
mov al, byte [0x414668]
mov byte [ebp - 0x194], al
mov dword [ebp - 0x19c], edx
nop dword [eax + eax]
mov eax, 0x2f684bdb
mul edx
mov eax, dword [ebp - 0x19c]
sub eax, edx
shr eax, 1
add eax, edx
mov edx, dword [ebp - 0x19c]
shr eax, 5
mov cl, dl
movsx eax, al
imul eax, eax, 0x36
sub cl, al
add cl, 0x38
xor byte [ebp + edx - 0x198], cl
inc edx
mov dword [ebp - 0x19c], edx
cmp edx, 5
jl 0x402bb0
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x198]
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x40], xmm0
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402c10
sub ecx, edx
lea eax, [ebp - 0x198]
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.004100d0
mov byte [ebp - 4], 0x10
xor edx, edx
mov eax, dword [0x41446c]
mov dword [ebp - 0x198], eax
mov al, byte [0x414470]
mov byte [ebp - 0x194], al
mov dword [ebp - 0x19c], edx
nop dword [eax + eax]
mov eax, 0x2f684bdb
mul edx
mov eax, dword [ebp - 0x19c]
sub eax, edx
shr eax, 1
add eax, edx
mov edx, dword [ebp - 0x19c]
shr eax, 5
mov cl, dl
movsx eax, al
imul eax, eax, 0x36
sub cl, al
add cl, 0x38
xor byte [ebp + edx - 0x198], cl
inc edx
mov dword [ebp - 0x19c], edx
cmp edx, 5
jl 0x402c50
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x198]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402cb0
sub ecx, edx
lea eax, [ebp - 0x198]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.004100d0
xor edx, edx
mov byte [ebp - 4], 0x11
mov dword [ebp - 0x1a8], edx
cmp dword [ebp + 0x18], edx
jbe 0x402ec1
nop
cmp dword [ebp + 0x1c], 0xf
lea ecx, [ebp + 8]
mov esi, dword [ebp + 8]
cmova ecx, esi
seta byte [ebp - 0x19d]
cmp byte [ecx + edx], 0x41
mov cl, byte [ebp - 0x19d]
jl 0x402da3
test cl, cl
lea eax, [ebp + 8]
cmovne eax, esi
cmp byte [eax + edx], 0x46
jg 0x402da3
test cl, cl
lea eax, [ebp + 8]
lea ecx, [ebp - 0x190]
cmovne eax, esi
movsx eax, byte [eax + edx]
sub eax, 0x37
lea eax, [eax + eax*2]
cmp dword [ecx + eax*8 + 0x14], 0xf
lea ecx, [ecx + eax*8]
mov esi, ecx
mov dword [ebp - 0x19c], ecx
jbe 0x402d48
mov esi, dword [ecx]
mov dword [ebp - 0x19c], esi
mov eax, dword [edi + 0x14]
mov edx, dword [edi + 0x10]
sub eax, edx
mov ecx, dword [ecx + 0x10]
mov dword [ebp - 0x1a4], ecx
cmp ecx, eax
ja 0x402d8f
cmp dword [edi + 0x14], 0xf
lea eax, [edx + ecx]
mov dword [edi + 0x10], eax
mov eax, edi
jbe 0x402d6d
mov eax, dword [edi]
push ecx
push dword [ebp - 0x19c]
lea esi, [eax + edx]
push esi
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x1a4]
add esp, 0xc
mov byte [eax + esi], 0
jmp 0x402eab
push ecx
mov byte [ebp - 0x1b0], 0
push esi
push dword [ebp - 0x1b0]
jmp 0x402ea3
test cl, cl
lea eax, [ebp + 8]
cmovne eax, esi
cmp byte [eax + edx], 0x61
jl 0x402e1e
test cl, cl
lea eax, [ebp + 8]
cmovne eax, esi
cmp byte [eax + edx], 0x66
jg 0x402e1e
test cl, cl
lea eax, [ebp + 8]
lea ecx, [ebp - 0x190]
cmovne eax, esi
movsx eax, byte [eax + edx]
sub eax, 0x57
lea eax, [eax + eax*2]
cmp dword [ecx + eax*8 + 0x14], 0xf
lea ecx, [ecx + eax*8]
mov esi, ecx
mov dword [ebp - 0x19c], ecx
jbe 0x402df1
mov esi, dword [ecx]
mov dword [ebp - 0x19c], esi
mov eax, dword [edi + 0x14]
mov edx, dword [edi + 0x10]
sub eax, edx
mov ecx, dword [ecx + 0x10]
mov dword [ebp - 0x1a4], ecx
cmp ecx, eax
jbe 0x402d5d
push ecx
mov byte [ebp - 0x1b4], 0
push esi
push dword [ebp - 0x1b4]
jmp 0x402ea3
test cl, cl
lea eax, [ebp + 8]
lea ecx, [ebp - 0x190]
cmovne eax, esi
movsx eax, byte [eax + edx]
sub eax, 0x30
lea eax, [eax + eax*2]
cmp dword [ecx + eax*8 + 0x14], 0xf
lea ecx, [ecx + eax*8]
mov esi, ecx
mov dword [ebp - 0x19c], ecx
jbe 0x402e50
mov esi, dword [ecx]
mov dword [ebp - 0x19c], esi
mov eax, dword [edi + 0x14]
mov edx, dword [edi + 0x10]
sub eax, edx
mov ecx, dword [ecx + 0x10]
mov dword [ebp - 0x1a4], ecx
cmp ecx, eax
ja 0x402e94
cmp dword [edi + 0x14], 0xf
lea eax, [edx + ecx]
mov dword [edi + 0x10], eax
mov eax, edi
jbe 0x402e75
mov eax, dword [edi]
push ecx
push dword [ebp - 0x19c]
lea esi, [eax + edx]
push esi
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x1a4]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x402eab
push ecx
push esi
mov byte [ebp - 0x197], 0
push dword [ebp - 0x197]
push ecx
mov ecx, edi
call fcn.004101c0
mov edx, dword [ebp - 0x1a8]
inc edx
mov dword [ebp - 0x1a8], edx
cmp edx, dword [ebp + 0x18]
jb 0x402ce0
push fcn.0040eed0
push 0x10
push 0x18
lea eax, [ebp - 0x190]
mov byte [ebp - 4], 1
push eax
call fcn.00410c1d
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0xf
jbe 0x402f10
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402f06
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402f06
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00410f83
add esp, 8
mov eax, edi
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.00410abd
mov esp, ebp
pop ebp
ret