Function at 0x10022660
Capabilities:
Encrypt data using speck
Get common file path
Get disk information
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d4
push ebx
push esi
push edi
movzx eax, byte [0x1004a0bc]
mov dword [ebp - 0x280], eax
xor ecx, ecx
mov dword [ebp - 0x44], 0x5b3aa71d
mov dword [ebp - 0x40], ecx
mov byte [ebp - 1], 0x2a
movzx eax, byte [0x1004a0bc]
cdq
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], edx
movsx eax, byte [0x1004a03e]
cdq
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
mov dl, byte [0x1004a06b]
mov byte [ebp - 6], dl
movzx eax, byte [0x1004a0bb]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x18], 0x2995
mov cl, byte [0x1004a108]
mov byte [ebp - 4], cl
mov edx, dword [0x1004a0c8]
mov dword [ebp - 0x3c], edx
mov eax, dword [0x1004a110]
mov dword [ebp - 0x70], eax
mov cx, word [0x1004a108]
mov word [ebp - 0x14], cx
mov edx, dword [0x1004a170]
mov eax, dword [0x1004a174]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], eax
mov ecx, dword [0x1004a0f8]
mov edx, dword [0x1004a0fc]
mov dword [ebp - 0x27c], edx
mov byte [ebp - 5], cl
mov eax, dword [0x1004a110]
cdq
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov ax, word [0x1004a0cc]
mov byte [ebp - 3], al
mov ecx, dword [0x1004a170]
mov dword [ebp - 0x24], ecx
mov edx, 0x4db50
mov dword [ebp - 0x4c], 0x82080ca9
mov dword [ebp - 0x48], edx
mov ax, word [0x1004a100]
mov byte [ebp - 2], al
mov ecx, 0x39db
mov word [ebp - 0x10], cx
mov edx, dword [0x1004a0d8]
mov eax, dword [0x1004a0dc]
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x68], eax
mov ecx, 0xffffb256
mov word [ebp - 0xc], cx
xor edx, edx
mov dword [ebp - 0xac], 0x94
mov dword [ebp - 0xa8], edx
mov eax, 0x16
mov word [ebp - 0x170], ax
mov eax, dword [0x1004a148]
cdq
mov dword [ebp - 0x290], eax
mov dword [ebp - 0x28c], edx
mov dword [ebp - 0x278], 0x38
movzx eax, byte [0x1004a06b]
cdq
mov dword [ebp - 0x298], eax
mov dword [ebp - 0x294], edx
mov dword [ebp - 0x264], 0x5196fc44
mov dword [ebp - 0x284], 0xba821ba
mov ecx, dword [0x1004a190]
mov word [ebp - 0x174], cx
movzx eax, byte [0x1004a06b]
cdq
mov dword [ebp - 0x2a0], eax
mov dword [ebp - 0x29c], edx
mov dword [ebp - 0x288], 0x744ce8c9
mov edx, dword [0x1004a14c]
mov dword [ebp - 0x214], edx
mov dword [ebp - 0x218], 0x5047aabe
mov dword [ebp - 0x21c], 0xa9
mov ax, word [0x1004a120]
mov byte [ebp - 0x8e], al
mov byte [ebp - 0x8d], 0x80
mov dword [ebp - 0x220], 0x6cdfc4e0
mov ecx, 0xffff8be7
mov word [ebp - 0x178], cx
mov edx, dword [0x1004ac78]
mov dword [ebp - 0x94], edx
push 0x1003b588
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x94]
add eax, 0x235
mov dword [ebp - 0x180], eax
mov ecx, dword [ebp - 0x94]
add ecx, 0x3b3
mov dword [ebp - 0x224], ecx
movzx edx, byte [ebp - 5]
cmp dword [0x1004a110], edx
jg 0x1002293f
push 0
push 0
call fcn.10024090
add esp, 8
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x34]
or eax, dword [ebp - 0x30]
je 0x1002291c
mov dword [ebp - 0x8c], 0
jmp 0x100228bb
mov ecx, dword [ebp - 0x8c]
add ecx, 1
mov dword [ebp - 0x8c], ecx
cmp dword [ebp - 0x8c], 0x1c4
jge 0x1002291a
mov ecx, dword [0x1004a118]
add ecx, 0x95
movzx eax, word [0x1004a124]
cdq
sub eax, ecx
mov word [0x1004a124], ax
movzx edx, byte [ebp - 2]
add edx, dword [0x1004a178]
mov ecx, edx
mov esi, dword [0x1004a118]
not esi
movzx eax, word [0x1004a0cc]
cdq
add esi, eax
add ecx, esi
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
add edx, 1
adc eax, 0
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
jmp 0x100228ac
jmp 0x1002293a
mov ecx, dword [ebp - 0x24]
shr ecx, 1
mov dword [0x1004a110], ecx
movzx eax, byte [0x1004a06b]
cdq
mov dword [0x1004a108], eax
mov dword [0x1004a10c], edx
jmp 0x100229e4
movsx edx, byte [0x1004a03e]
cmp edx, dword [0x1004a158]
jb 0x1002295a
mov dword [ebp - 0xfc], 1
jmp 0x10022964
mov dword [ebp - 0xfc], 0
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x70]
xor esi, esi
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x184], ecx
mov dword [ebp - 0x190], edx
mov dword [ebp - 0x18c], esi
mov eax, dword [ebp - 0x188]
cmp eax, dword [ebp - 0x190]
jne 0x100229a3
mov ecx, dword [ebp - 0x184]
cmp ecx, dword [ebp - 0x18c]
je 0x100229af
mov dword [ebp - 0x114], 1
jmp 0x100229b9
mov dword [ebp - 0x114], 0
mov edx, dword [ebp - 0xfc]
cmp edx, dword [ebp - 0x114]
jge 0x100229e4
movzx eax, byte [ebp - 1]
cdq
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x228], edx
sub eax, ecx
mov byte [ebp - 1], al
mov byte [0x1004a093], 8
mov eax, dword [ebp - 0x94]
add eax, 0x172
mov dword [ebp - 0x17c], eax
cmp dword [0x1004a17c], 0
je 0x10022bc2
movzx ecx, byte [0x1004a0bb]
test ecx, ecx
jne 0x10022a21
xor edx, edx
mov dword [ebp - 0x13c], 1
mov dword [ebp - 0x138], edx
jmp 0x10022a2c
xorps xmm0, xmm0
movlpd qword [ebp - 0x13c], xmm0
mov eax, dword [0x1004a0e8]
not eax
mov ecx, dword [0x1004a0ec]
not ecx
mov dword [ebp - 0x198], eax
mov dword [ebp - 0x194], ecx
mov edx, dword [ebp - 0x194]
cmp edx, dword [ebp - 0x138]
ja 0x10022a71
jb 0x10022a65
mov eax, dword [ebp - 0x198]
cmp eax, dword [ebp - 0x13c]
jae 0x10022a71
mov dword [ebp - 0x124], 1
jmp 0x10022a7b
mov dword [ebp - 0x124], 0
movzx ecx, word [0x1004a124]
movzx edx, byte [ebp - 2]
cmp ecx, edx
je 0x10022a96
mov dword [ebp - 0x128], 1
jmp 0x10022aa0
mov dword [ebp - 0x128], 0
mov eax, dword [0x1004a160]
mov ecx, dword [0x1004a164]
not eax
not ecx
mov dword [ebp - 0x1a0], eax
mov dword [ebp - 0x19c], ecx
mov edx, dword [0x1004a11c]
cmp edx, dword [ebp - 0x19c]
ja 0x10022ae4
jb 0x10022ad8
mov eax, dword [0x1004a118]
cmp eax, dword [ebp - 0x1a0]
jae 0x10022ae4
mov dword [ebp - 0x118], 1
jmp 0x10022aee
mov dword [ebp - 0x118], 0
mov eax, dword [0x1004a148]
cdq
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 0x1a4], edx
mov ecx, dword [ebp - 0x1a4]
cmp ecx, dword [ebp - 0x40]
ja 0x10022b24
jb 0x10022b18
mov edx, dword [ebp - 0x1a8]
cmp edx, dword [ebp - 0x44]
ja 0x10022b24
mov dword [ebp - 0x11c], 1
jmp 0x10022b2e
mov dword [ebp - 0x11c], 0
mov eax, dword [ebp - 0x118]
not eax
cmp eax, dword [ebp - 0x11c]
je 0x10022b4a
mov dword [ebp - 0x12c], 1
jmp 0x10022b54
mov dword [ebp - 0x12c], 0
mov ecx, dword [ebp - 0x124]
not ecx
imul ecx, dword [ebp - 0x128]
mov edx, dword [ebp - 0x12c]
not edx
cmp ecx, edx
jl 0x10022ba8
movzx eax, word [0x1004a0cc]
mov ecx, dword [0x1004a128]
sub ecx, eax
mov dword [0x1004a128], ecx
mov edx, dword [0x1004a158]
xor eax, eax
mov ecx, dword [0x1004a0f8]
mov esi, dword [0x1004a0fc]
push esi
push ecx
push eax
push edx
call fcn.1002e960
mov dword [0x1004a158], eax
jmp 0x10022bbd
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x22c], eax
xor edx, 0xdf95283d
mov dword [ebp - 0x58], edx
jmp 0x10022c46
movzx ecx, word [ebp - 0x14]
test ecx, ecx
jne 0x10022bd6
mov dword [ebp - 0xb0], 1
jmp 0x10022be0
mov dword [ebp - 0xb0], 0
mov edx, dword [0x1004a104]
add edx, dword [ebp - 0xb0]
xor eax, eax
mov dword [0x1004a0c0], edx
mov dword [0x1004a0c4], eax
mov ecx, dword [0x1004a154]
xor edx, edx
mov eax, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x48]
push edx
push ecx
push esi
push eax
call fcn.1002e960
mov esi, eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
push 0
push 0xa2280cdf
push edx
push ecx
call fcn.1002e960
mov edi, eax
mov eax, dword [ebp - 0x58]
xor ecx, ecx
mov edx, dword [ebp - 0x50]
push edx
mov edx, dword [ebp - 0x54]
push edx
push ecx
push eax
call fcn.1002e960
add edi, eax
add esi, edi
mov dword [0x1004a144], esi
mov eax, dword [0x1004ac78]
mov dword [ebp - 0x78], eax
push 0x73d1f
push 0x1abf2321
mov ecx, dword [0x1004a11c]
push ecx
mov edx, dword [0x1004a118]
push edx
call fcn.1002e960
mov ecx, dword [ebp - 0x58]
xor esi, esi
push esi
push ecx
push edx
push eax
call fcn.1002e960
add eax, 0xb1
adc edx, 0
mov dword [0x1004a160], eax
mov dword [0x1004a164], edx
movsx eax, byte [str.address_family_not]
sub eax, 0xb691
cdq
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
mov edx, dword [ebp - 0x78]
add edx, 0x1ee
mov dword [ebp - 0xf0], edx
mov dword [ebp - 0x74], 0x13
mov eax, dword [0x1004a104]
add eax, dword [ebp - 0x58]
mov esi, eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x230], edx
xor ecx, dword [ebp - 0x54]
add esi, ecx
movsx eax, byte [ebp - 3]
cdq
mov edi, eax
xor edi, dword [ebp - 0xac]
mov eax, dword [ebp - 0x3c]
cdq
mov ecx, dword [0x1004a168]
mov ebx, dword [0x1004a16c]
not ecx
not ebx
push ebx
push ecx
push edx
push eax
call fcn.1002e960
add edi, eax
sub esi, edi
mov word [0x1004a120], si
movzx eax, word [ebp - 0x14]
cdq
mov dword [ebp - 0x1b0], eax
mov dword [ebp - 0x1ac], edx
mov edx, dword [ebp - 0x40]
cmp edx, dword [ebp - 0x1ac]
ja 0x10022d43
jb 0x10022d2e
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x1b0]
jae 0x10022d43
mov ecx, 2
imul edx, ecx, 0xc
mov ax, word [edx + 0x100d6200]
mov word [0x1004a0cc], ax
mov ecx, dword [ebp - 0x74]
add ecx, 1
mov dword [ebp - 0x74], ecx
cmp dword [ebp - 0x74], 0x18c8
jl 0x10022d05
mov edx, dword [ebp - 0x78]
add edx, 0x220
mov dword [ebp - 0x234], edx
mov eax, dword [ebp - 0x78]
add eax, 0x7d
mov dword [ebp - 0x238], eax
mov byte [0x1004a056], 4
movzx eax, byte [ebp - 6]
cdq
add eax, 0x8e89faec
adc edx, 0xf8297
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
movzx ecx, byte [0x1004a056]
mov dword [ebp - 0xb4], ecx
cmp dword [ebp - 0xb4], 4
ja case.default.0x10022dad
mov edx, dword [ebp - 0xb4]
jmp dword [edx*4 + 0x10024028]
movsx eax, word [ebp - 0x10]
add eax, dword [ebp - 0x24]
mov word [0x1004a100], ax
movsx ecx, word [0x1004a100]
imul edx, ecx, 0xff
mov byte [ebp - 1], dl
jmp case.default.0x10022dad
mov eax, dword [ebp - 0x70]
add eax, 0x96
xor ecx, ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
jmp case.default.0x10022dad
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x23c], edx
add ecx, 0xe5e6d8eb
movzx eax, word [0x1004a0cc]
cdq
sub eax, ecx
mov word [0x1004a0cc], ax
jmp case.default.0x10022dad
movsx eax, byte [0x1004a092]
shl eax, 1
cdq
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
movzx eax, byte [ebp - 6]
mov ecx, dword [ebp - 0x3c]
sub ecx, eax
mov edx, dword [ebp - 0x3c]
sub edx, ecx
mov dword [ebp - 0x3c], edx
jmp case.default.0x10022dad
movsx eax, word [ebp - 0xc]
movzx ecx, byte [ebp - 1]
add eax, ecx
mov edx, 0x63
sub edx, eax
jne 0x10022e5c
xor eax, eax
mov dword [ebp - 0x144], 1
mov dword [ebp - 0x140], eax
jmp 0x10022e67
xorps xmm0, xmm0
movlpd qword [ebp - 0x144], xmm0
mov ecx, dword [0x1004a0e0]
mov edx, dword [0x1004a0e4]
not ecx
not edx
add ecx, dword [ebp - 0x144]
adc edx, dword [ebp - 0x140]
not ecx
not edx
mov dword [0x1004a0f8], ecx
mov dword [0x1004a0fc], edx
movzx eax, byte [ebp - 4]
sub eax, 0x58
cdq
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], edx
cmp dword [ebp - 0x24], 0
je 0x10022f26
movzx eax, byte [ebp - 5]
not eax
test eax, eax
je 0x10022f12
cmp dword [0x1004a148], 0
jne 0x10022f12
movsx ecx, word [0x1004a100]
add ecx, 0x94
mov dword [ebp - 0x70], ecx
movsx edx, byte [ebp - 3]
test edx, edx
jne 0x10022ede
mov dword [ebp - 0xb8], 1
jmp 0x10022ee8
mov dword [ebp - 0xb8], 0
movsx eax, word [0x1004a100]
sub eax, dword [ebp - 0x18]
movzx ecx, byte [0x1004a0bc]
add ecx, dword [ebp - 0xb8]
not ecx
sub eax, ecx
xor edx, edx
mov dword [0x1004a188], eax
mov dword [0x1004a18c], edx
jmp 0x10022f24
cmp dword [0x1004a158], 0
je 0x10022f24
mov eax, dword [ebp - 0x3c]
add eax, 0x30
mov byte [ebp - 6], al
jmp 0x10022f65
movzx ecx, byte [ebp - 5]
test ecx, ecx
jne 0x10022f3a
mov dword [ebp - 0xbc], 1
jmp 0x10022f44
mov dword [ebp - 0xbc], 0
mov edx, dword [ebp - 0xbc]
imul edx, dword [0x1004a144]
test edx, edx
jne 0x10022f65
mov eax, dword [ebp - 0x58]
add eax, 0x6a6b250f
xor ecx, ecx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x64], 0
movzx eax, byte [0x1004a0ba]
cdq
add eax, dword [0x1004a118]
mov byte [0x1004a0ba], al
mov dword [ebp - 0x240], 0
movsx edx, byte [0x1004a093]
cmp dword [0x1004a0c8], edx
jne 0x10022fa4
mov dword [ebp - 0xc0], 1
jmp 0x10022fae
mov dword [ebp - 0xc0], 0
movsx eax, word [0x1004a100]
cmp eax, dword [ebp - 0xc0]
jle 0x10022fc9
mov dword [ebp - 0xcc], 1
jmp 0x10022fd3
mov dword [ebp - 0xcc], 0
movzx eax, byte [ebp - 2]
cdq
mov dword [ebp - 0x1b8], eax
mov dword [ebp - 0x1b4], edx
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x1b8]
jne 0x10022ffa
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp - 0x1b4]
je 0x10023006
mov dword [ebp - 0xc8], 1
jmp 0x10023010
mov dword [ebp - 0xc8], 0
movsx eax, word [0x1004a100]
cdq
mov dword [ebp - 0x1c0], eax
mov dword [ebp - 0x1bc], edx
mov eax, dword [0x1004a0d4]
cmp eax, dword [ebp - 0x1bc]
ja 0x1002304d
jb 0x10023041
mov ecx, dword [0x1004a0d0]
cmp ecx, dword [ebp - 0x1c0]
jae 0x1002304d
mov dword [ebp - 0xc4], 1
jmp 0x10023057
mov dword [ebp - 0xc4], 0
mov edx, dword [ebp - 0xc4]
not edx
mov eax, dword [ebp - 0xc8]
sub eax, edx
imul eax, dword [ebp - 0xcc]
test eax, eax
je 0x10023089
mov eax, dword [0x1004a110]
cdq
add eax, 0x53f80dd9
adc edx, 0xbd604
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x248], 0
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
mov cl, 2
call fcn.1002e9a0
mov dword [0x1004a188], eax
mov dword [0x1004a18c], edx
movzx eax, byte [ebp - 2]
sub eax, 0xfa
cdq
mov ecx, dword [0x1004a130]
mov esi, dword [0x1004a134]
xor ecx, eax
xor esi, edx
mov dword [0x1004a130], ecx
mov dword [0x1004a134], esi
push 0
push 0
push 0x1003b58c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor edx, edx
mov dword [0x1004a168], eax
mov dword [0x1004a16c], edx
mov eax, dword [0x1004a168]
mov ecx, dword [0x1004a16c]
mov dword [ebp - 0x1c8], eax
mov dword [ebp - 0x1c4], ecx
cmp dword [ebp - 0x1c4], 0
jg 0x10023134
jl 0x10023122
cmp dword [ebp - 0x1c8], 0
jae 0x10023134
xor edx, edx
mov word [ebp - 0xc], dx
movsx eax, word [ebp - 0xc]
mov dword [ebp - 0x24c], eax
jmp 0x1002315d
mov ecx, 0x81c31cdf
test ecx, ecx
je 0x1002315d
movsx edx, word [0x1004a120]
movsx eax, byte [0x1004a092]
add edx, eax
movsx ecx, word [0x1004a120]
sub ecx, edx
mov word [0x1004a120], cx
mov dword [0x1004a190], 0x85c0
movzx edx, byte [ebp - 1]
test edx, edx
jne 0x1002317b
mov dword [ebp - 0xd0], 1
jmp 0x10023185
mov dword [ebp - 0xd0], 0
mov eax, dword [0x1004a190]
add eax, dword [ebp - 0xd0]
movsx ecx, word [ebp - 0x10]
movzx edx, byte [ebp - 2]
and ecx, edx
sub eax, ecx
not eax
mov ecx, dword [0x1004a110]
imul ecx, dword [0x1004a128]
movzx edx, byte [ebp - 4]
not edx
and ecx, edx
not ecx
add eax, ecx
xor ecx, ecx
mov dword [0x1004a118], eax
mov dword [0x1004a11c], ecx
xor edx, edx
mov dword [0x1004a170], 0xa4
mov dword [0x1004a174], edx
mov eax, 1
imul ecx, eax, 0x35
movzx eax, byte [ecx + 0x101bd8e0]
cdq
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], edx
xor edx, edx
mov byte [ebp - 0x35], dl
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2cc]
push eax
lea ecx, [ebp - 0x35]
call fcn.100016f0
mov ecx, eax
call fcn.100221e0
push eax
push 0
push 0
call fcn.10001410
add esp, 8
call eax
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x17c]
imul ecx, dword [ebp - 0x180]
cmp ecx, 0x152
je 0x1002347f
mov edx, dword [ebp - 0x18]
sub edx, 0x5a
mov byte [ebp - 4], dl
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov cl, 2
call fcn.1002e9a0
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], edx
cmp dword [ebp - 0x5c], 0
jne 0x1002347f
xor eax, eax
mov dword [0x1004a0f8], 4
mov dword [0x1004a0fc], eax
mov ecx, dword [ebp - 0x44]
sub ecx, 1
mov edx, dword [ebp - 0x40]
sbb edx, 0
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], edx
movsx eax, byte [0x1004a03f]
movzx ecx, byte [0x1004a056]
lea edx, [ecx + eax - 0xc1a4]
mov byte [0x1004a056], dl
mov eax, dword [0x1004a0f8]
mov ecx, dword [0x1004a0fc]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], ecx
mov edx, dword [ebp - 0x9c]
or edx, dword [ebp - 0x98]
je 0x100232f4
cmp dword [ebp - 0x9c], 2
jne 0x100232d9
cmp dword [ebp - 0x98], 0
je 0x10023383
cmp dword [ebp - 0x9c], 3
jne 0x100232ef
cmp dword [ebp - 0x98], 0
je 0x100233f1
jmp 0x10023467
mov eax, dword [ebp - 0x54]
or eax, dword [ebp - 0x50]
jne 0x10023310
xor ecx, ecx
mov dword [ebp - 0x14c], 1
mov dword [ebp - 0x148], ecx
jmp 0x1002331b
xorps xmm0, xmm0
movlpd qword [ebp - 0x14c], xmm0
mov edx, dword [0x1004a0d8]
mov eax, dword [0x1004a0dc]
add edx, dword [ebp - 0x34]
adc eax, dword [ebp - 0x30]
mov ecx, dword [0x1004a168]
mov esi, dword [0x1004a16c]
add ecx, dword [ebp - 0x14c]
adc esi, dword [ebp - 0x148]
xor edi, edi
mov ebx, dword [0x1004a0c0]
mov dword [ebp - 0x160], eax
mov eax, dword [0x1004a0c4]
xor ebx, dword [ebp - 0x70]
xor eax, edi
sub ecx, ebx
sbb esi, eax
sub edx, ecx
mov eax, dword [ebp - 0x160]
sbb eax, esi
not edx
not eax
mov dword [0x1004a170], edx
mov dword [0x1004a174], eax
jmp 0x10023467
mov ecx, 2
shl ecx, 4
mov dx, word [ecx + 0x102216e0]
mov word [0x1004a124], dx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x168], ecx
mov edx, dword [ebp - 0x16c]
or edx, dword [ebp - 0x168]
je 0x100233d2
mov eax, dword [0x1004a0e0]
mov ecx, dword [0x1004a0e4]
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x150], ecx
jmp 0x100233e3
mov edx, dword [ebp - 0x24]
xor eax, eax
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x150], eax
mov cl, byte [ebp - 0x154]
mov byte [0x1004a0ba], cl
jmp 0x10023467
imul edx, dword [ebp - 0x3c], 0x90880744
mov dword [0x1004a110], edx
cmp dword [0x1004a148], 0
jne 0x10023413
mov dword [ebp - 0xd4], 1
jmp 0x1002341d
mov dword [ebp - 0xd4], 0
movsx eax, byte [0x1004a092]
imul eax, dword [ebp - 0xd4]
cdq
mov ecx, eax
mov esi, edx
mov eax, dword [0x1004a140]
cdq
xor eax, dword [0x1004a0e8]
xor edx, dword [0x1004a0ec]
sub ecx, eax
sbb esi, edx
movsx edx, byte [0x1004a017]
movsx eax, word [ebp - 0xc]
mov edi, dword [ebp - 0x24]
sub edi, eax
imul edx, edi
not edx
xor eax, eax
add ecx, edx
adc esi, eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], esi
mov cl, byte [ebp - 3]
mov edx, 1
imul eax, edx, 0x30
mov byte [eax + 0x100d64f8], cl
xor eax, eax
jmp 0x10024021
mov cx, word [ebp - 0x14]
add cx, 1
mov word [ebp - 0x14], cx
mov eax, dword [0x1004a128]
cdq
sub eax, 0xc8fb458c
mov dword [0x1004a128], eax
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0
call fcn.10001380
add esp, 8
call eax
mov dword [ebp - 0x80], eax
push 0
push 0x84000000
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
push 0
push 0
call fcn.100014d0
add esp, 8
call eax
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xdc], 0
jne 0x1002368e
cmp dword [0x1004a0ec], 0
jb 0x100235f1
ja 0x10023515
cmp dword [0x1004a0e8], 0x2931
jbe 0x100235f1
mov byte [ebp - 2], 4
mov edx, 2
imul eax, edx, 0x6f
movsx ecx, word [eax + 0x101f04d8]
mov dword [0x1004a154], ecx
movzx edx, byte [ebp - 2]
mov dword [ebp - 0xd8], edx
cmp dword [ebp - 0xd8], 4
ja case.0x1002354b.2
mov eax, dword [ebp - 0xd8]
jmp dword [eax*4 + 0x1002403c]
push 0
push 0xc81774ec
mov ecx, dword [0x1004a11c]
push ecx
mov edx, dword [0x1004a118]
push edx
call fcn.1002e960
mov dword [str.J64_], eax
mov dword [0x1004a13c], edx
mov al, byte [ebp - 0x10]
mov byte [0x1004a093], al
jmp case.0x1002354b.2
movzx eax, byte [0x1004a0bc]
movsx ecx, word [0x1004a100]
add eax, ecx
cdq
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x250], ecx
xor edx, eax
mov byte [0x1004a017], dl
jmp case.0x1002354b.2
movzx edx, byte [0x1004a06b]
add edx, 0x13
mov dword [0x1004a158], edx
movzx eax, byte [ebp - 4]
cdq
mov ecx, dword [0x1004a180]
mov edx, dword [0x1004a184]
mov dword [ebp - 0x254], edx
sub ecx, eax
mov dword [0x1004a110], ecx
jmp case.0x1002354b.2
movsx eax, byte [ebp - 3]
cdq
add eax, 0xa033d921
mov byte [ebp - 5], al
mov byte [0x1004a092], 8
jmp 0x1002361e
mov eax, dword [ebp - 0x24]
cmp dword [0x1004a104], eax
jae 0x1002361e
mov ecx, dword [0x1004a144]
add ecx, 0xfbea4f3
mov dword [0x1004a104], ecx
mov edx, dword [ebp - 0x18]
xor eax, eax
mov dword [0x1004a180], edx
mov dword [0x1004a184], eax
mov ecx, dword [ebp - 0x80]
push ecx
push 0
push 0
call fcn.10001530
add esp, 8
call eax
mov edx, dword [ebp - 0x5c]
push edx
push 0
push 0
call fcn.10001200
add esp, 8
call eax
mov eax, 2
imul ecx, eax, 0x6d
movzx eax, word [ecx + 0x100d6200]
cdq
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
add ecx, eax
adc esi, edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], esi
mov edx, dword [0x1004a0c0]
mov eax, dword [0x1004a0c4]
mov ecx, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x48]
push esi
push ecx
push eax
push edx
call fcn.1002e960
mov dword [0x1004a0c0], eax
mov dword [0x1004a0c4], edx
xor eax, eax
jmp 0x10024021
mov dword [ebp - 0x7c], 0
jmp 0x100236a0
mov edx, dword [ebp - 0x7c]
add edx, 1
mov dword [ebp - 0x7c], edx
cmp dword [ebp - 0x7c], 0x9e
jge 0x100236b7
mov al, byte [0x1004a092]
add al, 1
mov byte [0x1004a092], al
jmp 0x10023697
push 0x104
lea ecx, [ebp - 0x4d4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [0x1004a158], eax
push 4
push 0x3000
push 0x100000
push 0
push 0
push 0
call fcn.10001140
add esp, 8
call eax
mov dword [ebp - 0x60], eax
lea edx, [ebp - 0xe0]
push edx
push 0x100000
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0xdc]
push ecx
push 0
push 0
call fcn.100012f0
add esp, 8
call eax
test eax, eax
je 0x1002371f
cmp dword [ebp - 0xe0], 0
jne 0x10023737
lea edx, [ebp - 0x2b8]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov word [0x1004a100], ax
jmp 0x10023988
mov eax, dword [0x1004a128]
cdq
sub eax, 0x1b10f187
mov word [0x1004a124], ax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x164], eax
mov ecx, dword [ebp - 0x164]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x1002376f
cmp dword [ebp - 0x64], 0
jne 0x1002376f
jmp 0x10023988
push 0
lea eax, [ebp - 0x258]
push eax
mov ecx, dword [ebp - 0xe0]
push ecx
mov edx, dword [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x80]
push eax
push 0
push 0
call fcn.100012c0
add esp, 8
call eax
xor ecx, ecx
mov dword [ebp - 0x4c], 3
mov dword [ebp - 0x48], ecx
mov edx, dword [0x1004a15c]
add edx, dword [0x1004a144]
mov dword [0x1004a15c], edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], ecx
cmp dword [ebp - 0xa0], 0
jl 0x10023972
jg 0x100237e1
cmp dword [ebp - 0xa4], 0
jb 0x10023972
cmp dword [ebp - 0xa0], 0
jg 0x10023972
jl 0x100237fd
cmp dword [ebp - 0xa4], 3
ja 0x10023972
mov edx, dword [ebp - 0xa4]
mov dword [ebp - 0x2a8], edx
mov eax, dword [ebp - 0x2a8]
jmp dword [eax*4 + 0x10024050]
mov edx, dword [ebp - 0x64]
add edx, 1
mov dword [ebp - 0x64], edx
mov eax, 1
test eax, eax
jne 0x100236b7
mov ecx, dword [ebp - 0x80]
push ecx
push 0
push 0
call fcn.10001530
add esp, 8
call eax
mov edx, dword [ebp - 0x5c]
push edx
push 0
push 0
call fcn.10001200
add esp, 8
call eax
push 0x8000
push 0
mov eax, dword [ebp - 0x60]
push eax
push 0
push 0
call fcn.10001170
add esp, 8
call eax
mov ecx, 0x3b2
sub ecx, dword [ebp - 0xf0]
cmp ecx, dword [ebp - 0xf0]
je 0x1002401c
movsx eax, byte [0x1004a03e]
cdq
mov dword [ebp - 0x1e0], eax
mov dword [ebp - 0x1dc], edx
mov edx, dword [0x1004a11c]
cmp edx, dword [ebp - 0x1dc]
ja 0x10023a19
jb 0x10023a0d
mov eax, dword [0x1004a118]
cmp eax, dword [ebp - 0x1e0]
jae 0x10023a19
mov dword [ebp - 0xf4], 1
jmp 0x10023a23
mov dword [ebp - 0xf4], 0
cmp dword [0x1004a11c], 0
ja 0x10023a43
jb 0x10023a37
cmp dword [0x1004a118], 0x1a
jae 0x10023a43
mov dword [ebp - 0xf8], 1
jmp 0x10023a4d
mov dword [ebp - 0xf8], 0
mov ecx, dword [ebp - 0xf4]
cmp ecx, dword [ebp - 0xf8]
jle 0x10023a5d
jmp 0x10023a71
mov edx, dword [0x1004a170]
xor edx, 0x319e7a5b
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x18], eax
xor ecx, ecx
mov dword [0x1004a118], 0xa8e1
mov dword [0x1004a11c], ecx
movzx eax, byte [ebp - 1]
add eax, 0xa8e1
cdq
mov dword [ebp - 0x1e8], eax
mov dword [ebp - 0x1e4], edx
mov edx, dword [0x1004a118]
cmp edx, dword [ebp - 0x1e8]
jne 0x10023bfa
mov eax, dword [0x1004a11c]
cmp eax, dword [ebp - 0x1e4]
jne 0x10023bfa
movzx eax, byte [0x1004a0bc]
cdq
mov ecx, dword [ebp - 0x34]
add ecx, 0xe2caf0e3
mov esi, dword [ebp - 0x30]
adc esi, 0
mov dword [ebp - 0x1f0], eax
mov dword [ebp - 0x1ec], edx
mov dword [ebp - 0x1f8], ecx
mov dword [ebp - 0x1f4], esi
mov edx, dword [ebp - 0x1f0]
cmp edx, dword [ebp - 0x1f8]
jne 0x10023bfa
mov eax, dword [ebp - 0x1ec]
cmp eax, dword [ebp - 0x1f4]
jne 0x10023bfa
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [0x1004a178]
je 0x10023bb4
mov edx, dword [0x1004a180]
mov eax, dword [0x1004a184]
mov dword [ebp - 0x200], edx
mov dword [ebp - 0x1fc], eax
cmp dword [ebp - 0x1fc], 0
jl 0x10023b58
jg 0x10023b4c
cmp dword [ebp - 0x200], 0x2195
jb 0x10023b58
mov dword [ebp - 0x120], 1
jmp 0x10023b62
mov dword [ebp - 0x120], 0
movsx ecx, byte [0x1004a03e]
cmp dword [0x1004a104], ecx
je 0x10023b7d
mov dword [ebp - 0x100], 1
jmp 0x10023b87
mov dword [ebp - 0x100], 0
mov edx, dword [ebp - 0x120]
sub edx, dword [ebp - 0x100]
je 0x10023bb2
movsx eax, byte [0x1004a03f]
add eax, 0xca
mov byte [0x1004a0bc], al
xor ecx, ecx
mov dword [ebp - 0x20], 8
mov dword [ebp - 0x1c], ecx
jmp 0x10023bcb
mov edx, dword [0x1004a130]
mov eax, dword [0x1004a134]
mov dword [ebp - 0x208], edx
mov dword [ebp - 0x204], eax
jmp 0x10023bfa
xor ecx, ecx
mov dword [0x1004a118], 0xa8e1
mov dword [0x1004a11c], ecx
mov edx, dword [ebp - 0x54]
sub edx, dword [ebp - 0x54]
mov dword [ebp - 0x18], edx
movzx eax, word [ebp - 0x14]
cdq
mov ecx, 8
imul ecx, ecx, 0xcb
mov dword [ecx + 0x10050540], eax
mov dword [ecx + 0x10050544], edx
cmp dword [ebp - 0x64], 0
jne 0x1002401c
mov eax, dword [0x1004a15c]
cdq
and eax, dword [0x1004a0d0]
mov dword [0x1004a104], eax
movzx edx, byte [0x1004a06b]
movzx eax, byte [0x1004a056]
add edx, eax
movzx ecx, byte [0x1004a06b]
add ecx, edx
mov byte [0x1004a06b], cl
mov dword [ebp - 0x18], 4
movsx edx, byte [ebp - 3]
test edx, edx
je 0x10023c93
mov eax, dword [0x1004a130]
mov ecx, dword [0x1004a134]
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], ecx
jmp 0x10023ca5
mov eax, dword [0x1004a140]
cdq
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], edx
mov edx, dword [ebp - 0x134]
mov eax, dword [ebp - 0x130]
mov dword [0x1004a108], edx
mov dword [0x1004a10c], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x104], ecx
cmp dword [ebp - 0x104], 4
ja case.default.0x10023cd8
mov edx, dword [ebp - 0x104]
jmp dword [edx*4 + 0x10024060]
push 0x7859
push 0xd673e21e
mov eax, dword [0x1004a0d4]
push eax
mov ecx, dword [0x1004a0d0]
push ecx
call fcn.1002e960
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
jmp case.default.0x10023cd8
mov edx, 2
imul eax, edx, 0x5a
movsx ecx, word [eax + 0x101f04d8]
mov edx, dword [ebp - 0x18]
add edx, ecx
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
mov cl, 7
call fcn.1002e9f0
mov dword [ebp - 0x18], eax
jmp case.default.0x10023cd8
movzx eax, word [0x1004a0f0]
cdq
mov ecx, eax
movsx eax, byte [0x1004a017]
cdq
add eax, 0xc5d43a6a
xor ecx, eax
mov byte [0x1004a03e], cl
jmp case.default.0x10023cd8
mov edx, dword [str.J64_]
sub edx, dword [0x1004a170]
mov eax, dword [0x1004a13c]
sbb eax, dword [0x1004a174]
mov ecx, dword [str.J64_]
sub ecx, edx
mov edx, dword [0x1004a13c]
sbb edx, eax
mov dword [str.J64_], ecx
mov dword [0x1004a13c], edx
mov eax, dword [0x1004ac78]
mov dword [0x1004a140], eax
jmp case.default.0x10023cd8
movsx ecx, word [0x1004a100]
add ecx, 0x4091
mov dword [0x1004a128], ecx
mov edx, dword [0x1004a0c0]
mov eax, dword [0x1004a0c4]
mov dword [ebp - 0x26c], eax
add edx, 0xc1
mov dword [0x1004a15c], edx
mov ecx, dword [0x1004ac78]
mov dword [ebp - 0x84], ecx
mov edx, dword [ebp - 0x84]
add edx, 0x1f1
mov dword [ebp - 0x110], edx
xor eax, eax
mov dword [0x1004a0d0], 4
mov dword [0x1004a0d4], eax
movzx eax, word [0x1004a0f0]
cdq
mov dword [0x1004a0c0], eax
mov dword [0x1004a0c4], edx
movzx ecx, byte [ebp - 1]
mov edx, dword [0x1004a148]
sub edx, 0x1dc4f6e
imul ecx, edx
not ecx
mov byte [0x1004a0ba], cl
mov eax, dword [0x1004a0d0]
mov ecx, dword [0x1004a0d4]
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x158], ecx
cmp dword [ebp - 0x158], 0
ja 0x10023fa5
jb 0x10023e52
cmp dword [ebp - 0x15c], 4
ja 0x10023fa5
mov edx, dword [ebp - 0x15c]
mov dword [ebp - 0x2b0], edx
mov eax, dword [ebp - 0x2b0]
jmp dword [eax*4 + 0x10024074]
mov edx, dword [ebp - 0x84]
add edx, 0x172
mov dword [ebp - 0x270], edx
mov eax, dword [ebp - 0x84]
add eax, 0xb2
mov dword [ebp - 0x274], eax
imul ecx, dword [ebp - 0x110], 0x63
imul edx, dword [ebp - 0x110], 0x6d
or ecx, edx
cmp ecx, 0x160
je 0x1002401c
mov dword [ebp - 0x88], 0x35e
jmp 0x10023ffb
mov eax, dword [ebp - 0x88]
sub eax, 1
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
jle 0x10024018
mov cx, word [0x1004a124]
add cx, 1
mov word [0x1004a124], cx
jmp 0x10023fec
xor eax, eax
jmp 0x10024021
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret