Function at 0x40ce2d
Capabilities:
Encode data using xor

Disassembly:
push 0x5cc
mov eax, 0x4e5c5a
call fcn.004bed4f
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov byte [ecx], 0
lea ecx, [ebp - 0x4ac]
push ecx
xor esi, esi
push eax
mov dword [ebp - 0x480], esi
call fcn.0040c4be
push ecx
mov eax, esp
mov dword [ebp - 0x47c], esp
lea ecx, [ebp - 0x4ac]
push ecx
push str.Kay_Mili_GetRemainingRegDays_Mein_
push eax
mov dword [ebp - 4], esi
call fcn.0040f56d
add esp, 0xc
call fcn.0045c866
mov eax, dword [ebp - 0x4ac]
cmp dword [eax - 0xc], esi
pop ecx
jle 0x40d8ae
lea eax, [ebp - 0x4ac]
push eax
lea ecx, [ebp - 0x474]
call fcn.0040228a
lea eax, [ebp - 0x474]
push eax
lea ecx, [ebp - 0x470]
mov byte [ebp - 4], 1
call fcn.0040228a
mov byte [ebp - 4], 2
mov ebx, dword [ebp - 0x470]
mov eax, dword [ebx - 0xc]
cmp eax, 0x17
je 0x40cedd
lea ecx, [ebx - 0x10]
call fcn.004027b0
mov ecx, dword [ebp - 0x474]
jmp 0x40d8a6
call fcn.00499991
push eax
lea ecx, [ebp - 0x4a8]
call fcn.004727f7
mov byte [ebp - 4], 3
call fcn.00499991
push eax
lea ecx, [ebp - 0x4a0]
call fcn.004727f7
mov byte [ebp - 4], 4
call fcn.00499991
push eax
lea ecx, [ebp - 0x4a4]
call fcn.004727f7
mov byte [ebp - 4], 5
call fcn.00499991
push eax
lea ecx, [ebp - 0x49c]
call fcn.004727f7
mov edi, 0x5267d0
push edi
xor ecx, ecx
lea esi, [ebp - 0x470]
mov byte [ebp - 4], 6
call fcn.004072a5
mov esi, eax
cmp esi, 0xffffffff
je 0x40d5db
push esi
push 0
lea eax, [ebp - 0x520]
push eax
lea ecx, [ebp - 0x470]
call fcn.0040731f
push eax
lea ecx, [ebp - 0x4a8]
mov byte [ebp - 4], 7
call fcn.0040257e
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x520]
add ecx, 0xfffffff0
call fcn.004027b0
push dword [ebx - 0xc]
inc esi
push esi
lea eax, [ebp - 0x51c]
push eax
lea ecx, [ebp - 0x470]
call fcn.0040731f
push eax
lea ecx, [ebp - 0x470]
mov byte [ebp - 4], 8
call fcn.0040257e
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x51c]
add ecx, 0xfffffff0
call fcn.004027b0
push edi
xor ecx, ecx
lea esi, [ebp - 0x470]
call fcn.004072a5
mov esi, eax
cmp esi, 0xffffffff
je 0x40d2cf
push esi
push 0
lea eax, [ebp - 0x524]
push eax
lea ecx, [ebp - 0x470]
call fcn.0040731f
push eax
lea ecx, [ebp - 0x4a0]
mov byte [ebp - 4], 9
call fcn.0040257e
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x524]
add ecx, 0xfffffff0
call fcn.004027b0
mov eax, dword [ebp - 0x470]
push dword [eax - 0xc]
inc esi
push esi
lea eax, [ebp - 0x518]
push eax
lea ecx, [ebp - 0x470]
call fcn.0040731f
push eax
lea ecx, [ebp - 0x470]
mov byte [ebp - 4], 0xa
call fcn.0040257e
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x518]
add ecx, 0xfffffff0
call fcn.004027b0
push edi
xor ecx, ecx
lea esi, [ebp - 0x470]
call fcn.004072a5
mov esi, eax
cmp esi, 0xffffffff
je 0x40d2cf
push esi
push 0
lea eax, [ebp - 0x514]
push eax
lea ecx, [ebp - 0x470]
call fcn.0040731f
push eax
lea ecx, [ebp - 0x4a4]
mov byte [ebp - 4], 0xb
call fcn.0040257e
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x514]
add ecx, 0xfffffff0
call fcn.004027b0
mov eax, dword [ebp - 0x470]
push dword [eax - 0xc]
inc esi
push esi
lea eax, [ebp - 0x4f8]
push eax
lea ecx, [ebp - 0x470]
call fcn.0040731f
push eax
lea ecx, [ebp - 0x49c]
mov byte [ebp - 4], 0xc
call fcn.0040257e
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x4f8]
add ecx, 0xfffffff0
call fcn.004027b0
push 6
pop edi
push 2
xor ecx, ecx
pop esi
mov eax, edi
mov edx, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004985df
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x4a8]
mov dword [ebp - 0x488], ecx
sub ecx, eax
movzx edx, word [eax]
mov word [ecx + eax], dx
add eax, esi
test dx, dx
jne 0x40d109
xor ecx, ecx
mov eax, edi
mov edx, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004985df
mov edx, eax
mov eax, dword [ebp - 0x4a0]
mov dword [ebp - 0x4c0], edx
pop ecx
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, esi
test cx, cx
jne 0x40d13d
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004985df
mov ebx, eax
mov eax, dword [ebp - 0x4a4]
mov edx, ebx
pop ecx
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x40d16e
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004985df
mov edx, eax
mov eax, dword [ebp - 0x49c]
mov dword [ebp - 0x4d8], edx
pop ecx
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x40d1a3
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004985df
mov esi, eax
mov eax, dword [ebp - 0x488]
pop ecx
mov ecx, dword [ebp - 0x4c0]
sub ecx, eax
mov dword [ebp - 0x478], eax
sub dword [ebp - 0x478], esi
mov dword [ebp - 0x4d0], esi
mov dword [ebp - 0x47c], ecx
mov dword [ebp - 0x4b0], 5
jmp 0x40d202
mov ecx, dword [ebp - 0x47c]
mov eax, dword [ebp - 0x478]
or dword [ebp - 0x484], 0xffffffff
or dword [ebp - 0x480], 0xffffffff
add eax, esi
mov dl, byte [eax + ecx]
mov al, byte [eax]
xor ecx, ecx
cmp byte [ecx + str.9PHVYB7EM6TW5SFZ8KUA3CNX4G2DRJ], dl
jne 0x40d22d
mov dword [ebp - 0x484], ecx
cmp byte [ecx + str.23456789ABCDEFGHJKMNPRSTUVWXYZ], al
jne 0x40d23b
mov dword [ebp - 0x480], ecx
inc ecx
cmp ecx, 0x1e
jl 0x40d21f
mov eax, dword [ebp - 0x484]
sub eax, dword [ebp - 0x480]
jns 0x40d252
add eax, 0x1e
movsx ax, byte [eax + str.23456789ABCDEFGHJKMNPRSTUVWXYZ]
mov word [esi], ax
inc esi
inc esi
dec dword [ebp - 0x4b0]
jne 0x40d1fc
mov esi, dword [ebp - 0x4d0]
xor eax, eax
push esi
mov ecx, 0x584a60
mov word [esi + 0xa], ax
call fcn.0040f54b
test eax, eax
je 0x40d315
mov eax, 0x5267c4
mov edx, esi
sub edx, eax
movzx ecx, word [eax]
mov word [eax + edx], cx
inc eax
inc eax
test cx, cx
jne 0x40d28f
push dword [ebp - 0x488]
call fcn.004985ea
pop ecx
push dword [ebp - 0x4c0]
call fcn.004985ea
pop ecx
push esi
call fcn.004985ea
pop ecx
push ebx
call fcn.004985ea
pop ecx
push dword [ebp - 0x4d8]
call fcn.004985ea
pop ecx
mov ecx, dword [ebp - 0x49c]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x4a4]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x4a0]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x4a8]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x470]
add ecx, 0xfffffff0
jmp 0x40cecd
mov al, byte [ebx]
xor edi, edi
xor ecx, ecx
cmp byte [ecx + str.VE9WMBCX8SP3DJT7A5GZUNHF2R6KY4], al
je 0x40d32b
inc ecx
cmp ecx, 0xb
jl 0x40d31b
jmp 0x40d32d
mov edi, ecx
mov cl, byte [ebx + 2]
push 0xb
pop edx
mov eax, edx
cmp byte [edx + str.VE9WMBCX8SP3DJT7A5GZUNHF2R6KY4], cl
je 0x40d345
inc edx
cmp edx, 0x17
jl 0x40d335
jmp 0x40d347
mov eax, edx
or dword [ebp - 0x4b0], 0xffffffff
or dword [ebp - 0x484], 0xffffffff
or dword [ebp - 0x478], 0xffffffff
add eax, 0xfffffff5
xor esi, esi
mov cl, byte [esi + str.VE9WMBCX8SP3DJT7A5GZUNHF2R6KY4]
cmp cl, byte [ebx + 4]
jne 0x40d372
mov dword [ebp - 0x4b0], esi
cmp cl, byte [ebx + 6]
jne 0x40d37d
mov dword [ebp - 0x484], esi
cmp cl, byte [ebx + 8]
jne 0x40d388
mov dword [ebp - 0x478], esi
xor ecx, ecx
cmp dword [ebp - 0x4b0], ecx
jl 0x40d3a2
cmp dword [ebp - 0x484], ecx
jl 0x40d3a2
cmp dword [ebp - 0x478], ecx
jge 0x40d3a8
inc esi
cmp esi, 0x1e
jl 0x40d361
imul eax, eax, 0x1e
imul edi, edi, 0x16d
lea eax, [edi + eax + 4]
mov dword [ebp - 0x480], eax
call fcn.00499991
push eax
lea ecx, [ebp - 0x4f0]
call fcn.004727f7
mov byte [ebp - 4], 0xd
xor edi, edi
mov eax, dword [ebp - 0x4d8]
mov al, byte [eax + edi*2]
xor esi, esi
cmp byte [esi + str.9PHVYB7EM6TW5SFZ8KUA3CNX4G2DRJ], al
je 0x40d3eb
inc esi
cmp esi, 0xa
jl 0x40d3dd
call fcn.00499991
push eax
lea ecx, [ebp - 0x4f4]
call fcn.004727f7
push esi
lea eax, [ebp - 0x4f4]
push 0x526688
push eax
mov byte [ebp - 4], 0xe
call fcn.00402967
mov esi, dword [ebp - 0x4f4]
add esp, 0xc
push dword [esi - 0xc]
lea ecx, [ebp - 0x4f0]
push esi
call fcn.0040f682
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0xd
call fcn.004027b0
inc edi
cmp edi, 5
jl 0x40d3d2
mov esi, dword [ebp - 0x4f0]
push esi
call fcn.004ba70f
pop ecx
push 8
mov dword [ebp - 0x47c], eax
pop ecx
xor eax, eax
mov word [ebp - 0x3c], ax
push ebx
push dword [ebp - 0x4d0]
lea edi, [ebp - 0x3a]
push dword [ebp - 0x488]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x3c]
push 0x5267d4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0x12
call fcn.004985df
mov edi, eax
pop ecx
lea eax, [ebp - 0x5d4]
mov dword [ebp - 0x5d8], eax
push 3
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x5d8]
push eax
call fcn.00406d5a
mov eax, dword [ebp - 0x5d8]
mov ecx, edi
sub ecx, eax
mov dl, byte [eax]
mov byte [eax + ecx], dl
inc eax
test dl, dl
jne 0x40d4b0
lea eax, [ebp - 0x5d4]
cmp dword [ebp - 0x5d8], eax
je 0x40d4d4
push dword [ebp - 0x5d8]
call fcn.004b9cc0
pop ecx
and dword [ebp - 0x478], 0
mov dword [ebp - 0x484], 0x11
mov eax, edi
movzx edx, byte [eax]
mov ecx, dword [ebp - 0x478]
shr ecx, 8
xor ecx, edx
mov edx, dword [ebp - 0x478]
shl edx, 8
xor edx, dword [ecx*4 + 0x57d608]
and edx, 0xffff
inc eax
dec dword [ebp - 0x484]
cmp dword [ebp - 0x484], 0
mov dword [ebp - 0x478], edx
jg 0x40d4e7
push edi
call fcn.004985ea
movzx eax, word [ebp - 0x478]
cmp dword [ebp - 0x47c], eax
pop ecx
push dword [ebp - 0x488]
sete byte [ebp - 0x48d]
call fcn.004985ea
pop ecx
push dword [ebp - 0x4c0]
call fcn.004985ea
pop ecx
push dword [ebp - 0x4d0]
call fcn.004985ea
pop ecx
push ebx
call fcn.004985ea
pop ecx
push dword [ebp - 0x4d8]
call fcn.004985ea
pop ecx
lea ecx, [esi - 0x10]
call fcn.004027b0
mov ecx, dword [ebp - 0x49c]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x4a4]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x4a0]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x4a8]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x470]
add ecx, 0xfffffff0
call fcn.004027b0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x474]
add ecx, 0xfffffff0
call fcn.004027b0
mov al, byte [ebp - 0x48d]
jmp 0x40d631
mov ecx, dword [ebp - 0x49c]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x4a4]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x4a0]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x4a8]
add ecx, 0xfffffff0
call fcn.004027b0
add ebx, 0xfffffff0
mov ecx, ebx
call fcn.004027b0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x474]
add ecx, 0xfffffff0
call fcn.004027b0
xor al, al
test al, al
je 0x40d8ae
call fcn.00499991
push eax
lea ecx, [ebp - 0x494]
call fcn.004727f7
push dword [ebp - 0x480]
lea eax, [ebp - 0x494]
push str.GetRemainingRegDays_Ka_Validate_bhi_ho_gaya__d_days
push eax
mov byte [ebp - 4], 0xf
call fcn.00402967
pop ecx
pop ecx
lea eax, [ebp - 0x494]
mov dword [ebp - 0x47c], esp
mov ecx, esp
push eax
call fcn.0040228a
call fcn.0045c866
pop ecx
push 2
lea eax, [ebp - 0x498]
push eax
call fcn.0040b964
push ecx
mov eax, esp
mov dword [ebp - 0x47c], esp
lea ecx, [ebp - 0x498]
push ecx
push str.GetRemainingRegDays_strInstallTime_nikala__
push eax
mov byte [ebp - 4], 0x11
call fcn.0040f56d
add esp, 0xc
call fcn.0045c866
fldz
pop ecx
fstp qword [ebp - 0x4e8]
mov ebx, 0x400
push ebx
xor esi, esi
push esi
push dword [ebp - 0x498]
lea ecx, [ebp - 0x4e8]
mov dword [ebp - 0x4e0], esi
call fcn.0040f756
test al, al
je 0x40d948
push ecx
mov ecx, esp
mov dword [ebp - 0x47c], esp
push str.GetRemainingRegDays_strInstallTime_Parsekiya
call fcn.004024df
call fcn.0045c866
pop ecx
cmp dword [ebp - 0x4e0], esi
jne 0x40d892
push ecx
mov ecx, esp
mov dword [ebp - 0x47c], esp
push str.GetRemainingRegDays_strInstallTime_Parsekiya___status_valid_aaya
call fcn.004024df
call fcn.0045c866
pop ecx
lea eax, [ebp - 0x530]
call fcn.0040fbce
push ecx
mov ecx, esp
mov dword [ebp - 0x47c], esp
push str.GetRemainingRegDays_curtime_nikala
call fcn.004024df
call fcn.0045c866
pop ecx
lea eax, [ebp - 0x530]
push eax
lea ecx, [ebp - 0x4e8]
call fcn.0040f98f
test al, al
je 0x40d81f
push ecx
mov ecx, esp
mov dword [ebp - 0x48c], esp
push str.GetRemainingRegDays_timeInstalled___curtime
call fcn.004024df
call fcn.0045c866
pop ecx
lea eax, [ebp - 0x530]
push eax
lea esi, [ebp - 0x548]
lea eax, [ebp - 0x4e8]
call fcn.0040f90d
mov ecx, esi
call fcn.0040f8dd
fcomp qword [0x559620]
push ecx
mov ecx, esp
mov dword [ebp - 0x48c], esp
fnstsw ax
test ah, 5
jp 0x40d7f5
push str.GetRemainingRegDays___timeInstalled___curtime_and_nSpan.GetTotalDays_____3
call fcn.004024df
call fcn.0045c866
pop ecx
mov ecx, dword [ebp - 0x498]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x494]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x4ac]
add ecx, 0xfffffff0
call fcn.004027b0
xor eax, eax
call fcn.004bedab
ret 8
push str.GetRemainingRegDays___timeInstalled___curtime_and_nSpan.GetTotalDays_____3_FALSE_hai
call fcn.004024df
call fcn.0045c866
pop ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x48c], esp
push str.timeInstalled___curtime_nahi_hai_and_curtime___timeInstalled_bhi_nahi_hai
call fcn.004024df
call fcn.0045c866
jmp 0x40d891
lea esi, [ebp - 0x4e8]
lea edi, [ebp - 0x530]
call fcn.0040f702
test al, al
je 0x40d805
push ecx
mov ecx, esp
mov dword [ebp - 0x47c], esp
push str.GetRemainingRegDays_curtime___timeInstalled
call fcn.004024df
call fcn.0045c866
mov eax, esi
pop ecx
push eax
lea esi, [ebp - 0x53c]
mov eax, edi
call fcn.0040f90d
mov ecx, esi
call fcn.0040f8dd
call fcn.004c0c90
mov edi, eax
cmp edi, dword [ebp - 0x480]
jb 0x40d8c5
push ecx
mov ecx, esp
mov dword [ebp - 0x47c], esp
push str.GetRemainingRegDays_nDaysPassed___nDaysAllowed_return_0_days_and_Epiredtrue
call fcn.004024df
call fcn.0045c866
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
pop ecx
mov ecx, dword [ebp - 0x498]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x494]
add ecx, 0xfffffff0
call fcn.004027b0
xor esi, esi
mov ecx, dword [ebp - 0x4ac]
add ecx, 0xfffffff0
call fcn.004027b0
mov eax, esi
jmp 0x40d7ed
call fcn.00499991
push eax
lea ecx, [ebp - 0x4bc]
call fcn.004727f7
mov esi, dword [ebp - 0x480]
push edi
push dword [ebp - 0x480]
sub esi, edi
push esi
lea eax, [ebp - 0x4bc]
push str.GetRemainingRegDays_return_kar_raha_hai____d_days__nDaysAllowed_d___nDaysPassed_d_
push eax
mov byte [ebp - 4], 0x12
call fcn.00402967
add esp, 0x14
push ecx
lea eax, [ebp - 0x4bc]
mov dword [ebp - 0x48c], esp
mov ecx, esp
push eax
call fcn.0040228a
call fcn.0045c866
pop ecx
mov ecx, dword [ebp - 0x4bc]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x498]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x494]
add ecx, 0xfffffff0
call fcn.004027b0
jmp 0x40d8b0
call fcn.00499991
push eax
lea ecx, [ebp - 0x4c8]
call fcn.004727f7
push dword [ebp - 0x480]
lea eax, [ebp - 0x4c8]
push str.GetRemainingRegDays_TimeInstalled_parse_nahi_kar_paya_
push eax
mov byte [ebp - 4], 0x13
call fcn.00402967
add esp, 0xc
push ecx
lea eax, [ebp - 0x4c8]
mov dword [ebp - 0x48c], esp
mov ecx, esp
push eax
call fcn.0040228a
call fcn.0045c866
pop ecx
lea eax, [ebp - 0x554]
call fcn.0040fbce
mov esi, eax
lea edi, [ebp - 0x4e8]
movsd dword es:[edi], dword [esi]
push ebx
movsd dword es:[edi], dword [esi]
push 0
lea eax, [ebp - 0x4dc]
push eax
lea ecx, [ebp - 0x4e8]
movsd dword es:[edi], dword [esi]
call fcn.0040f7c5
mov eax, 0x584840
push eax
mov dword [ebp - 0x48c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 0x15
call fcn.00499991
push eax
lea ecx, [ebp - 0x4d4]
call fcn.004727f7
push 2
lea eax, [ebp - 0x4d4]
push 0x526688
push eax
mov byte [ebp - 4], 0x16
call fcn.00402967
mov esi, dword [ebp - 0x4dc]
add esp, 0xc
push dword [ebp - 0x4d4]
mov ecx, 0x584a68
call fcn.004a7d87
push esi
mov ecx, eax
call fcn.004026bd
mov edi, dword [ebp - 0x4dc]
lea eax, [ebp - 0x4ec]
push eax
lea esi, [ebp - 0x510]
mov dword [ebp - 0x4ec], SysReAllocString
call fcn.0040a64a
mov byte [ebp - 4], 0x17
call fcn.00499991
push eax
lea ecx, [ebp - 0x4cc]
call fcn.004727f7
push 2
mov byte [ebp - 4], 0x18
push dword [0x584a4c]
lea eax, [ebp - 0x4cc]
push dword [0x584a54]
push eax
call fcn.00402967
add esp, 0x10
call fcn.00499991
push eax
lea ecx, [ebp - 0x4b4]
call fcn.004727f7
push 0x200
lea eax, [ebp - 0x46c]
push 0
mov byte [ebp - 4], 0x19
push eax
mov dword [ebp - 0x510], 0x2001f
call fcn.004be850
add esp, 0xc
mov ebx, 0xff
push ebx
lea eax, [ebp - 0x46c]
push edi
push eax
call fcn.004ba74e
mov eax, dword [0x584a64]
add esp, 0xc
cmp dword [eax - 0xc], 0
jne 0x40dae6
mov ecx, dword [ebp - 0x4b4]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x4cc]
add ecx, 0xfffffff0
jmp 0x40dd23
push 7
pop ecx
mov esi, str.Microsoft_Visual_C_Library
lea edi, [ebp - 0x5c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x101
push esi
lea eax, [ebp - 0x164]
push 0
push eax
call fcn.004be850
add esp, 0xc
push esi
lea eax, [ebp - 0x26c]
push 0
push eax
call fcn.004be850
add esp, 0xc
xor eax, eax
lea edx, [esi - 1]
cmp eax, edx
jae 0x40db30
mov byte [ebp + eax - 0x164], al
inc eax
jmp 0x40db22
mov eax, dword [0x584a64]
mov ecx, dword [eax - 0xc]
xor esi, esi
test ecx, ecx
je 0x40db5d
xor edi, edi
cmp edi, edx
jae 0x40db79
cmp esi, ecx
jb 0x40db4a
xor esi, esi
mov dl, byte [eax + esi*2]
mov byte [ebp + edi - 0x26c], dl
inc esi
inc edi
mov edx, 0x100
jmp 0x40db40
xor eax, eax
cmp eax, edx
jae 0x40db79
cmp esi, 0x1c
jb 0x40db6a
xor esi, esi
mov cl, byte [ebp + esi - 0x5c]
mov byte [ebp + eax - 0x26c], cl
inc esi
inc eax
jmp 0x40db5f
xor edi, edi
mov dword [ebp - 0x474], edi
cmp edi, edx
jae 0x40dbc5
movzx edx, byte [ebp + edi - 0x26c]
add edx, dword [ebp - 0x474]
lea eax, [ebp + edi - 0x164]
mov cl, byte [eax]
movzx esi, cl
add esi, edx
and esi, ebx
movzx cx, cl
mov dword [ebp - 0x474], esi
lea esi, [ebp + esi - 0x164]
mov dl, byte [esi]
movzx ecx, cx
mov byte [eax], dl
mov byte [esi], cl
inc edi
mov edx, 0x100
jmp 0x40db81
xor edi, edi
mov dword [ebp - 0x474], edi
mov dword [ebp - 0x488], edi
cmp dword [ebp - 0x488], 0x1fe
jae 0x40dc38
inc edi
and edi, ebx
lea eax, [ebp + edi - 0x164]
mov cl, byte [eax]
movzx edx, cl
add edx, dword [ebp - 0x474]
movzx cx, cl
and edx, ebx
lea esi, [ebp + edx - 0x164]
movzx ecx, cx
mov dword [ebp - 0x474], edx
mov dl, byte [esi]
mov byte [eax], dl
mov edx, dword [ebp - 0x488]
mov byte [esi], cl
movzx eax, byte [eax]
movzx ecx, cl
add ecx, eax
and ecx, ebx
mov al, byte [ebp + ecx - 0x164]
lea edx, [ebp + edx - 0x46c]
xor byte [edx], al
inc dword [ebp - 0x488]
jmp 0x40dbd3
xor eax, eax
mov word [ebp - 0x26e], ax
call fcn.00499991
push eax
lea ecx, [ebp - 0x4c4]
call fcn.004727f7
push 2
mov byte [ebp - 4], 0x1a
push dword [0x584a5c]
lea eax, [ebp - 0x4c4]
push eax
call fcn.00402967
add esp, 0xc
push ecx
lea eax, [ebp - 0x4c4]
mov dword [ebp - 0x4ec], esp
mov ecx, esp
push eax
lea esi, [ebp - 0x46c]
call fcn.0040228a
mov ecx, esi
call fcn.0040b6c1
pop ecx
mov byte [ebp - 4], 0x19
mov ecx, dword [ebp - 0x4c4]
add ecx, 0xfffffff0
call fcn.004027b0
mov edi, dword [ebp - 0x4cc]
push 1
push edi
push SysReAllocString
lea esi, [ebp - 0x510]
call fcn.0040a666
test eax, eax
je 0x40dcdd
push 0x200
lea eax, [ebp - 0x46c]
push eax
push dword [ebp - 0x4b4]
mov eax, esi
call fcn.0040a8f8
call fcn.0040a6c4
push 1
push edi
push reloc.OLEAUT32.dll_SysReAllocString
lea esi, [ebp - 0x510]
call fcn.0040a666
test eax, eax
je 0x40dd12
push 0x200
lea eax, [ebp - 0x46c]
push eax
push dword [ebp - 0x4b4]
mov eax, esi
call fcn.0040a8f8
call fcn.0040a6c4
mov ecx, dword [ebp - 0x4b4]
add ecx, 0xfffffff0
call fcn.004027b0
lea ecx, [edi - 0x10]
call fcn.004027b0
lea esi, [ebp - 0x510]
call fcn.0040a6c4
mov ecx, dword [ebp - 0x508]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x4d4]
add ecx, 0xfffffff0
call fcn.004027b0
push dword [ebp - 0x48c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x4dc]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x4c8]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x498]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x494]
add ecx, 0xfffffff0
call fcn.004027b0
xor esi, esi
inc esi
jmp 0x40d8b0