Function at 0x46b180
Capabilities:
Check for time delay via gettickcount
Check os version
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4805c0
push 0x408860
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x482534]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor edi, edi
xor esi, esi
mov dword [ebp - 0x274], esi
mov dword [ebp - 4], edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x294], edi
cmp edi, 0x3d
jge 0x46b215
cmp esi, 0xffff0001
jge 0x46b1ef
lea eax, [esi*8]
sub eax, esi
neg eax
mov esi, eax
mov dword [ebp - 0x274], esi
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov edx, esi
sub edx, ecx
jne 0x46b210
call ebx
mov esi, eax
mov dword [ebp - 0x274], esi
add edi, 1
jmp 0x46b1c9
mov dword [ebp - 4], 0xfffffffe
call fcn.0046b341
xor ecx, ecx
xor esi, ecx
mov dword [ebp - 0x274], esi
jge 0x46b235
neg esi
mov dword [ebp - 0x274], esi
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax*8]
sub edx, eax
mov eax, esi
sub eax, edx
jne 0x46b25f
xor esi, esi
mov dword [ebp - 0x274], esi
add ecx, 1
cmp ecx, 9
jl 0x46b223
xor ecx, ecx
lea esp, [esp]
xor esi, ecx
mov dword [ebp - 0x274], esi
jge 0x46b282
neg esi
mov dword [ebp - 0x274], esi
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax*8]
sub edx, eax
mov eax, esi
sub eax, edx
jne 0x46b2ac
xor esi, esi
mov dword [ebp - 0x274], esi
add ecx, 1
cmp ecx, 0xc
jl 0x46b270
cmp esi, 0xffff
jle 0x46b2cd
lea ecx, [esi*8]
sub ecx, esi
mov esi, ecx
mov dword [ebp - 0x274], esi
mov eax, 0x2e8ba2e9
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0xb
mov ecx, esi
sub ecx, eax
cmp ecx, 7
jne 0x46b2f4
mov esi, 0xd
mov dword [ebp - 0x274], esi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
xor edx, edx
mov ecx, 3
div ecx
cmp edx, 1
jne 0x46b314
call edi
add esi, eax
mov dword [ebp - 0x274], esi
xor edi, edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
mov eax, 0xcccccccd
mul edi
shr edx, 2
lea edx, [edx + edx*4]
mov eax, edi
sub eax, edx
cmp eax, 1
je 0x46b34e
cmp eax, 4
je 0x46b34e
and esi, edi
jmp 0x46b350
sub esi, edi
mov dword [ebp - 0x274], esi
call ebx
add edi, 1
cmp edi, 7
jl 0x46b31c
xor eax, eax
add esi, eax
mov dword [ebp - 0x274], esi
add eax, 1
cmp eax, 0x13
jl 0x46b362
cmp esi, 0xffff
jle 0x46b38b
lea eax, [esi*8]
sub eax, esi
mov esi, eax
mov dword [ebp - 0x274], esi
mov eax, 0x2e8ba2e9
imul esi
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0xb
mov edx, esi
sub edx, ecx
cmp edx, 7
jne 0x46b3b2
mov esi, 0xd
mov dword [ebp - 0x274], esi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
xor edx, edx
mov ecx, 3
div ecx
cmp edx, 1
jne 0x46b3d2
call edi
add esi, eax
mov dword [ebp - 0x274], esi
xor eax, eax
and esi, eax
mov dword [ebp - 0x274], esi
add eax, 1
cmp eax, 0xf
jl 0x46b3d4
test esi, esi
jge 0x46b3fa
mov edx, esi
neg edx
add edx, edx
add edx, edx
sub edx, esi
mov esi, edx
mov dword [ebp - 0x274], esi
mov eax, 0x4ec4ec4f
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0xd
mov ecx, esi
sub ecx, eax
jne 0x46b422
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
mov dword [ebp - 0x274], esi
mov dword [ebp - 4], 1
xor edi, edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x298], edi
cmp edi, 4
jge 0x46b47d
cmp esi, 0xffff0001
jge 0x46b457
lea edx, [esi*8]
sub edx, esi
neg edx
mov esi, edx
mov dword [ebp - 0x274], esi
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*2]
mov ecx, esi
sub ecx, eax
jne 0x46b478
call ebx
mov esi, eax
mov dword [ebp - 0x274], esi
add edi, 1
jmp 0x46b431
mov dword [ebp - 4], 0xfffffffe
call fcn.0046b4b5
xor ecx, ecx
jmp 0x46b490
mov eax, 0xcccccccd
mul ecx
shr edx, 2
lea edx, [edx + edx*4]
mov eax, ecx
sub eax, edx
cmp eax, 2
je 0x46b4c2
cmp eax, 3
je 0x46b4c2
xor esi, ecx
jmp 0x46b4c7
mov eax, ecx
imul esi, eax
mov dword [ebp - 0x274], esi
add ecx, 1
cmp ecx, 0xa
jl 0x46b490
lea ecx, [ebp - 0x270]
push ecx
push 0x477da0
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
call ebx
mov dword [ebp - 4], 2
xor edi, edi
mov dword [ebp - 0x28c], edi
cmp edi, 0xc
jge 0x46b542
cmp esi, 0xffff0001
jge 0x46b518
lea edx, [esi*8]
sub edx, esi
neg edx
mov esi, edx
mov dword [ebp - 0x274], esi
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*2]
mov ecx, esi
sub ecx, eax
jne 0x46b53d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x274], esi
add edi, 1
jmp 0x46b4f2
mov dword [ebp - 4], 0xfffffffe
call fcn.0046b679
lea edx, [ebp - 0x270]
push edx
push 0x477da8
call ebx
cmp esi, 0xffff
jle 0x46b575
lea eax, [esi*8]
sub eax, esi
mov esi, eax
mov dword [ebp - 0x274], esi
mov eax, 0x2e8ba2e9
imul esi
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0xb
mov edx, esi
sub edx, ecx
cmp edx, 7
jne 0x46b59c
mov esi, 0xd
mov dword [ebp - 0x274], esi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
xor edx, edx
mov ecx, 3
div ecx
cmp edx, 1
jne 0x46b5bc
call edi
add esi, eax
mov dword [ebp - 0x274], esi
lea edx, [ebp - 0x270]
push edx
push 0x477db0
call ebx
xor ecx, ecx
lea esp, [esp]
xor esi, ecx
mov dword [ebp - 0x274], esi
jge 0x46b5e2
neg esi
mov dword [ebp - 0x274], esi
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax*8]
sub edx, eax
mov eax, esi
sub eax, edx
jne 0x46b60c
xor esi, esi
mov dword [ebp - 0x274], esi
add ecx, 1
cmp ecx, 7
jl 0x46b5d0
mov dword [ebp - 4], 3
xor edi, edi
mov dword [ebp - 0x284], edi
cmp edi, 0xb
jge 0x46b686
cmp esi, 0xffff0001
jge 0x46b643
lea ecx, [esi*8]
sub ecx, esi
neg ecx
mov esi, ecx
mov dword [ebp - 0x274], esi
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*2]
mov eax, esi
sub eax, edx
jne 0x46b668
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x274], esi
add edi, 1
jmp 0x46b61d
mov dword [ebp - 4], 0xfffffffe
call fcn.0046b6f7
mov dword [ebp - 4], 4
xor edi, edi
mov dword [ebp - 0x278], edi
cmp edi, 3
jge 0x46b704
cmp esi, 0xffff0001
jge 0x46b6c1
lea ecx, [esi*8]
sub ecx, esi
neg ecx
mov esi, ecx
mov dword [ebp - 0x274], esi
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*2]
mov eax, esi
sub eax, edx
jne 0x46b6e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x274], esi
add edi, 1
jmp 0x46b69b
mov dword [ebp - 4], 0xfffffffe
call fcn.0046b73d
xor edi, edi
mov eax, 0xcccccccd
mul edi
shr edx, 2
lea ecx, [edx + edx*4]
mov eax, edi
sub eax, ecx
cmp eax, 1
je 0x46b74a
cmp eax, 4
je 0x46b74a
and esi, edi
jmp 0x46b74c
sub esi, edi
mov dword [ebp - 0x274], esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
add edi, 1
cmp edi, 0xc
jl 0x46b712
xor eax, eax
add esi, eax
mov dword [ebp - 0x274], esi
add eax, 1
cmp eax, 5
jl 0x46b762
cmp esi, 0xffff
jle 0x46b78b
lea edx, [esi*8]
sub edx, esi
mov esi, edx
mov dword [ebp - 0x274], esi
mov eax, 0x2e8ba2e9
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0xb
mov ecx, esi
sub ecx, eax
cmp ecx, 7
jne 0x46b7b2
mov esi, 0xd
mov dword [ebp - 0x274], esi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
xor edx, edx
mov ecx, 3
div ecx
cmp edx, 1
jne 0x46b7d2
call edi
add esi, eax
mov dword [ebp - 0x274], esi
lea edx, [ebp - 0x270]
push edx
push 0x477db8
call ebx
xor ecx, ecx
mov eax, 0xcccccccd
mul ecx
shr edx, 2
lea edx, [edx + edx*4]
mov eax, ecx
sub eax, edx
cmp eax, 2
je 0x46b801
cmp eax, 3
je 0x46b801
xor esi, ecx
jmp 0x46b806
mov eax, ecx
imul esi, eax
mov dword [ebp - 0x274], esi
add ecx, 1
cmp ecx, 2
jl 0x46b7e2
lea ecx, [ebp - 0x270]
push ecx
push 0x477dc0
call ebx
xor eax, eax
add esi, eax
mov dword [ebp - 0x274], esi
add eax, 1
cmp eax, 4
jl 0x46b824
cmp esi, 0xffff
jle 0x46b84d
lea edx, [esi*8]
sub edx, esi
mov esi, edx
mov dword [ebp - 0x274], esi
mov eax, 0x2e8ba2e9
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0xb
mov ecx, esi
sub ecx, eax
cmp ecx, 7
jne 0x46b874
mov esi, 0xd
mov dword [ebp - 0x274], esi
call edi
xor edx, edx
mov ecx, 3
div ecx
cmp edx, 1
jne 0x46b88e
call edi
add esi, eax
mov dword [ebp - 0x274], esi
mov dword [ebp - 0x274], esi
cmp esi, 0xffff
jle 0x46b8ad
lea edx, [esi*8]
sub edx, esi
mov esi, edx
mov dword [ebp - 0x274], esi
mov eax, 0x2e8ba2e9
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0xb
mov ecx, esi
sub ecx, eax
cmp ecx, 7
jne 0x46b8d4
mov esi, 0xd
mov dword [ebp - 0x274], esi
call edi
xor edx, edx
mov ecx, 3
div ecx
cmp edx, 1
jne 0x46b8ee
call edi
add esi, eax
mov dword [ebp - 0x274], esi
mov dword [ebp - 0x274], esi
test esi, esi
jge 0x46b900
neg esi
mov dword [ebp - 0x274], esi
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax*8]
sub edx, eax
mov eax, esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, edx
jne 0x46b932
call edi
mov esi, eax
mov dword [ebp - 0x274], esi
xor eax, eax
xor esi, eax
mov dword [ebp - 0x274], esi
add eax, 1
cmp eax, 8
jl 0x46b934
test esi, esi
jge 0x46b950
neg esi
mov dword [ebp - 0x274], esi
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov edx, esi
sub edx, ecx
jne 0x46b97c
call edi
mov esi, eax
mov dword [ebp - 0x274], esi
xor ecx, ecx
mov edi, edi
xor esi, ecx
mov dword [ebp - 0x274], esi
jge 0x46b992
neg esi
mov dword [ebp - 0x274], esi
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax*8]
sub edx, eax
mov eax, esi
sub eax, edx
jne 0x46b9bc
xor esi, esi
mov dword [ebp - 0x274], esi
add ecx, 1
cmp ecx, 2
jl 0x46b980
xor eax, eax
jmp 0x46b9d0
xor esi, eax
mov dword [ebp - 0x274], esi
add eax, 1
cmp eax, 8
jl 0x46b9d0
test esi, esi
jge 0x46b9ec
neg esi
mov dword [ebp - 0x274], esi
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov edx, esi
sub edx, ecx
jne 0x46ba18
call edi
mov esi, eax
mov dword [ebp - 0x274], esi
xor ecx, ecx
lea ebx, [ebx]
mov eax, 0xcccccccd
mul ecx
shr edx, 2
lea edx, [edx + edx*4]
mov eax, ecx
sub eax, edx
cmp eax, 2
je 0x46ba3f
cmp eax, 3
je 0x46ba3f
xor esi, ecx
jmp 0x46ba44
mov eax, ecx
imul esi, eax
mov dword [ebp - 0x274], esi
add ecx, 1
cmp ecx, 8
jl 0x46ba20
lea ecx, [ebp - 0x270]
push ecx
push 0x477dc8
call ebx
xor edi, edi
mov eax, 0xcccccccd
mul edi
shr edx, 2
lea edx, [edx + edx*4]
mov eax, edi
sub eax, edx
cmp eax, 1
je 0x46ba81
cmp eax, 4
je 0x46ba81
and esi, edi
jmp 0x46ba83
sub esi, edi
mov dword [ebp - 0x274], esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
add edi, 1
cmp edi, 4
jl 0x46ba62
xor eax, eax
lea esp, [esp]
and esi, eax
mov dword [ebp - 0x274], esi
add eax, 1
cmp eax, 5
jl 0x46baa0
test esi, esi
jge 0x46bac6
mov eax, esi
neg eax
add eax, eax
add eax, eax
sub eax, esi
mov esi, eax
mov dword [ebp - 0x274], esi
mov eax, 0x4ec4ec4f
imul esi
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0xd
mov edx, esi
sub edx, ecx
jne 0x46baee
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
mov dword [ebp - 0x274], esi
xor ecx, ecx
xor esi, ecx
mov dword [ebp - 0x274], esi
jge 0x46bb02
neg esi
mov dword [ebp - 0x274], esi
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax*8]
sub edx, eax
mov eax, esi
sub eax, edx
jne 0x46bb2c
xor esi, esi
mov dword [ebp - 0x274], esi
add ecx, 1
cmp ecx, 7
jl 0x46baf0
xor ecx, ecx
xor esi, ecx
mov dword [ebp - 0x274], esi
jge 0x46bb48
neg esi
mov dword [ebp - 0x274], esi
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax*8]
sub edx, eax
mov eax, esi
sub eax, edx
jne 0x46bb72
xor esi, esi
mov dword [ebp - 0x274], esi
add ecx, 1
cmp ecx, 4
jl 0x46bb36
xor eax, eax
lea esp, [esp]
xor esi, eax
mov dword [ebp - 0x274], esi
add eax, 1
cmp eax, 2
jl 0x46bb80
test esi, esi
jge 0x46bb9c
neg esi
mov dword [ebp - 0x274], esi
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov edx, esi
sub edx, ecx
jne 0x46bbcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x274], esi
xor eax, eax
mov edi, edi
and esi, eax
mov dword [ebp - 0x274], esi
add eax, 1
cmp eax, 2
jl 0x46bbd0
test esi, esi
jge 0x46bbf6
mov eax, esi
neg eax
add eax, eax
add eax, eax
sub eax, esi
mov esi, eax
mov dword [ebp - 0x274], esi
mov eax, 0x4ec4ec4f
imul esi
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0xd
mov edx, esi
sub edx, ecx
jne 0x46bc1e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
mov dword [ebp - 0x274], esi
mov dword [ebp - 0x274], esi
test esi, esi
jge 0x46bc30
neg esi
mov dword [ebp - 0x274], esi
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov edx, esi
sub edx, ecx
jne 0x46bc60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x274], esi
xor edi, edi
mov eax, 0xcccccccd
mul edi
shr edx, 2
lea ecx, [edx + edx*4]
mov eax, edi
sub eax, ecx
cmp eax, 1
je 0x46bc81
cmp eax, 4
je 0x46bc81
and esi, edi
jmp 0x46bc83
sub esi, edi
mov dword [ebp - 0x274], esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
add edi, 1
cmp edi, 2
jl 0x46bc62
mov dword [ebp - 4], 5
xor edi, edi
mov dword [ebp - 0x27c], edi
cmp edi, 3
jge 0x46bcf0
cmp esi, 0xffff0001
jge 0x46bcc6
lea edx, [esi*8]
sub edx, esi
neg edx
mov esi, edx
mov dword [ebp - 0x274], esi
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*2]
mov ecx, esi
sub ecx, eax
jne 0x46bceb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x274], esi
add edi, 1
jmp 0x46bca0
mov dword [ebp - 4], 0xfffffffe
call fcn.0046bd8b
lea edx, [ebp - 0x270]
push edx
push 0x477dd0
call ebx
xor eax, eax
lea esp, [esp]
and esi, eax
mov dword [ebp - 0x274], esi
add eax, 1
cmp eax, 2
jl 0x46bd10
test esi, esi
jge 0x46bd36
mov eax, esi
neg eax
add eax, eax
add eax, eax
sub eax, esi
mov esi, eax
mov dword [ebp - 0x274], esi
mov eax, 0x4ec4ec4f
imul esi
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0xd
mov edx, esi
sub edx, ecx
jne 0x46bd5e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
mov dword [ebp - 0x274], esi
xor edi, edi
mov eax, 0xcccccccd
mul edi
shr edx, 2
lea ecx, [edx + edx*4]
mov eax, edi
sub eax, ecx
cmp eax, 1
je 0x46bd98
cmp eax, 4
je 0x46bd98
and esi, edi
jmp 0x46bd9a
sub esi, edi
mov dword [ebp - 0x274], esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
add edi, 1
cmp edi, 4
jl 0x46bd60
mov dword [ebp - 0x274], esi
lea edx, [ebp - 0x270]
push edx
push 0x477dd8
call ebx
mov dword [ebp - 4], 6
xor edi, edi
mov dword [ebp - 0x280], edi
cmp edi, 1
jge 0x46be1b
cmp esi, 0xffff0001
jge 0x46bdf1
lea eax, [esi*8]
sub eax, esi
neg eax
mov esi, eax
mov dword [ebp - 0x274], esi
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov edx, esi
sub edx, ecx
jne 0x46be16
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x274], esi
add edi, 1
jmp 0x46bdcb
mov dword [ebp - 4], 0xfffffffe
call fcn.0046be54
xor edi, edi
mov eax, 0xcccccccd
mul edi
shr edx, 2
lea ecx, [edx + edx*4]
mov eax, edi
sub eax, ecx
cmp eax, 1
je 0x46be61
cmp eax, 4
je 0x46be61
and esi, edi
jmp 0x46be63
sub esi, edi
mov dword [ebp - 0x274], esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
add edi, 1
cmp edi, 2
jl 0x46be29
xor eax, eax
lea esp, [esp]
xor esi, eax
mov dword [ebp - 0x274], esi
add eax, 1
cmp eax, 3
jl 0x46be80
test esi, esi
jge 0x46be9c
neg esi
mov dword [ebp - 0x274], esi
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax*8]
sub edx, eax
mov eax, esi
sub eax, edx
jne 0x46becc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x274], esi
xor ecx, ecx
mov edi, edi
mov eax, 0xcccccccd
mul ecx
shr edx, 2
lea edx, [edx + edx*4]
mov eax, ecx
sub eax, edx
cmp eax, 2
je 0x46beef
cmp eax, 3
je 0x46beef
xor esi, ecx
jmp 0x46bef4
mov eax, ecx
imul esi, eax
mov dword [ebp - 0x274], esi
add ecx, 1
cmp ecx, 4
jl 0x46bed0
lea ecx, [ebp - 0x270]
push ecx
push 0x477de0
call ebx
mov dword [ebp - 0x274], esi
lea edx, [ebp - 0x270]
push edx
push 0x477de8
call ebx
xor esi, esi
mov dword [ebp - 0x274], esi
jge 0x46bf40
mov eax, esi
neg eax
add eax, eax
add eax, eax
sub eax, esi
mov esi, eax
mov dword [ebp - 0x274], esi
mov eax, 0x4ec4ec4f
imul esi
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0xd
mov edx, esi
sub edx, ecx
jne 0x46bf68
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
mov dword [ebp - 0x274], esi
xor eax, eax
lea ebx, [ebx]
add esi, eax
mov dword [ebp - 0x274], esi
add eax, 1
cmp eax, 4
jl 0x46bf70
cmp esi, 0xffff
jle 0x46bf99
lea eax, [esi*8]
sub eax, esi
mov esi, eax
mov dword [ebp - 0x274], esi
mov eax, 0x2e8ba2e9
imul esi
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0xb
mov edx, esi
sub edx, ecx
cmp edx, 7
jne 0x46bfc0
mov esi, 0xd
mov dword [ebp - 0x274], esi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
xor edx, edx
mov ecx, 3
div ecx
cmp edx, 1
jne 0x46bfe0
call edi
add esi, eax
mov dword [ebp - 0x274], esi
test esi, esi
jge 0x46bfec
neg esi
mov dword [ebp - 0x274], esi
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax*8]
sub edx, eax
mov eax, esi
sub eax, edx
jne 0x46c01c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x274], esi
xor ecx, ecx
mov edi, edi
mov eax, 0xcccccccd
mul ecx
shr edx, 2
lea edx, [edx + edx*4]
mov eax, ecx
sub eax, edx
cmp eax, 2
je 0x46c03f
cmp eax, 3
je 0x46c03f
xor esi, ecx
jmp 0x46c044
mov eax, ecx
imul esi, eax
mov dword [ebp - 0x274], esi
add ecx, 1
cmp ecx, 2
jl 0x46c020
lea ecx, [ebp - 0x270]
push ecx
push 0x477df0
call ebx
xor eax, eax
add esi, eax
mov dword [ebp - 0x274], esi
add eax, 1
cmp eax, 4
jl 0x46c062
cmp esi, 0xffff
jle 0x46c08b
lea edx, [esi*8]
sub edx, esi
mov esi, edx
mov dword [ebp - 0x274], esi
mov eax, 0x2e8ba2e9
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0xb
mov ecx, esi
sub ecx, eax
cmp ecx, 7
jne 0x46c0b2
mov esi, 0xd
mov dword [ebp - 0x274], esi
call edi
xor edx, edx
mov ecx, 3
div ecx
cmp edx, 1
jne 0x46c0cc
call edi
add esi, eax
mov dword [ebp - 0x274], esi
test esi, esi
jge 0x46c0e2
mov edx, esi
neg edx
add edx, edx
add edx, edx
sub edx, esi
mov esi, edx
mov dword [ebp - 0x274], esi
mov eax, 0x4ec4ec4f
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0xd
mov ecx, esi
sub ecx, eax
jne 0x46c10a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
mov dword [ebp - 0x274], esi
xor eax, eax
lea esp, [esp]
and esi, eax
mov dword [ebp - 0x274], esi
add eax, 1
cmp eax, 3
jl 0x46c110
test esi, esi
jge 0x46c136
mov edx, esi
neg edx
add edx, edx
add edx, edx
sub edx, esi
mov esi, edx
mov dword [ebp - 0x274], esi
mov eax, 0x4ec4ec4f
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0xd
mov ecx, esi
sub ecx, eax
jne 0x46c15e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
mov dword [ebp - 0x274], esi
xor ecx, ecx
xor esi, ecx
mov dword [ebp - 0x274], esi
jge 0x46c172
neg esi
mov dword [ebp - 0x274], esi
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax*8]
sub edx, eax
mov eax, esi
sub eax, edx
jne 0x46c19c
xor esi, esi
mov dword [ebp - 0x274], esi
add ecx, 1
cmp ecx, 2
jl 0x46c160
mov dword [ebp - 4], 7
xor edi, edi
mov dword [ebp - 0x288], edi
test edi, edi
jge 0x46c1fc
cmp esi, 0xffff0001
jge 0x46c1d2
lea ecx, [esi*8]
sub ecx, esi
neg ecx
mov esi, ecx
mov dword [ebp - 0x274], esi
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*2]
mov eax, esi
sub eax, edx
jne 0x46c1f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x274], esi
add edi, 1
jmp 0x46c1ad
mov dword [ebp - 4], 0xfffffffe
call fcn.0046c24b
mov dword [ebp - 0x274], esi
lea ecx, [ebp - 0x270]
push ecx
push 0x477df8
call ebx
xor edi, edi
mov edi, edi
mov eax, 0xcccccccd
mul edi
shr edx, 2
lea edx, [edx + edx*4]
mov eax, edi
sub eax, edx
cmp eax, 1
je 0x46c258
cmp eax, 4
je 0x46c258
and esi, edi
jmp 0x46c25a
sub esi, edi
mov dword [ebp - 0x274], esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
add edi, 1
cmp edi, 2
jl 0x46c220
xor eax, eax
add esi, eax
mov dword [ebp - 0x274], esi
add eax, 1
cmp eax, 4
jl 0x46c270
cmp esi, 0xffff
jle 0x46c299
lea eax, [esi*8]
sub eax, esi
mov esi, eax
mov dword [ebp - 0x274], esi
mov eax, 0x2e8ba2e9
imul esi
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0xb
mov edx, esi
sub edx, ecx
cmp edx, 7
jne 0x46c2c0
mov esi, 0xd
mov dword [ebp - 0x274], esi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
xor edx, edx
mov ecx, 3
div ecx
cmp edx, 1
jne 0x46c2e0
call edi
add esi, eax
mov dword [ebp - 0x274], esi
xor edi, edi
mov dword [ebp - 0x274], edi
jge 0x46c2fc
mov edx, edi
neg edx
add edx, edx
add edx, edx
sub edx, edi
mov edi, edx
mov dword [ebp - 0x274], edi
mov eax, 0x4ec4ec4f
imul edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0xd
mov ecx, edi
sub ecx, eax
jne 0x46c324
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
mov dword [ebp - 0x274], edi
xor ecx, ecx
mov eax, 0xcccccccd
mul ecx
shr edx, 2
lea edx, [edx + edx*4]
mov eax, ecx
sub eax, edx
cmp eax, 2
je 0x46c345
cmp eax, 3
je 0x46c345
mov eax, ecx
imul edi, eax
mov dword [ebp - 0x274], edi
add ecx, 1
cmp ecx, 4
jl 0x46c326