Function at 0x10021543
Capabilities:
Contain obfuscated stackstrings
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007c234
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
cmp dword [ebp + 0x10], 0
jbe 0x10021583
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x10021583
movzx eax, word [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.10020c49
pop ecx
pop ecx
jmp 0x100223e1
cmp dword [ebp + 0x10], 0
jne 0x10021d00
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
call fcn.10018ad0
mov dword [ebp - 0x48], eax
cmp dword [0x1066de50], 0
jne 0x10021cd4
mov dword [ebp - 0x160], 0x73d5
lea eax, [ebp - 0x160]
push eax
call fcn.10020b1d
pop ecx
mov dword [ebp - 0x140], eax
mov byte [ebp - 0xd8], 2
mov byte [ebp - 0xd7], 0x50
mov byte [ebp - 0xd6], 8
mov byte [ebp - 0xd5], 0x1b
mov byte [ebp - 0xd4], 4
mov byte [ebp - 0xd3], 0xa
mov byte [ebp - 0xd2], 0x28
mov byte [ebp - 0xd1], 0xcc
mov byte [ebp - 0xd0], 0x97
mov byte [ebp - 0xcf], 0x3e
mov byte [ebp - 0xce], 0xe5
mov byte [ebp - 0xcd], 0xd1
mov byte [ebp - 0xcc], 0x9b
mov byte [ebp - 0xcb], 0xae
mov byte [ebp - 0xca], 0x8d
mov byte [ebp - 0xc9], 0xb2
mov byte [ebp - 0xc8], 0x24
mov byte [ebp - 0xc7], 0x7c
mov byte [ebp - 0xc6], 0xb8
mov byte [ebp - 0xc5], 0xd
mov byte [ebp - 0xc4], 0xb1
mov byte [ebp - 0xc3], 0x54
mov byte [ebp - 0xc2], 0x24
mov byte [ebp - 0xc1], 0x1e
mov byte [ebp - 0xc0], 0x83
mov byte [ebp - 0xbf], 0xdd
mov byte [ebp - 0xbe], 0x5b
mov byte [ebp - 0xbd], 0x78
mov byte [ebp - 0xbc], 0xf8
mov byte [ebp - 0xbb], 0x7b
mov byte [ebp - 0xba], 0xd
mov byte [ebp - 0xb9], 0x61
mov byte [ebp - 0xb8], 9
mov byte [ebp - 0xb7], 0x9c
mov byte [ebp - 0xb6], 0x8d
mov byte [ebp - 0xb5], 0x13
mov byte [ebp - 0xb4], 0x1a
mov byte [ebp - 0xb3], 0x9d
mov byte [ebp - 0xb2], 0xea
mov byte [ebp - 0xb1], 0x5e
mov byte [ebp - 0xb0], 0x20
mov byte [ebp - 0xaf], 0xb6
mov byte [ebp - 0xae], 0x8d
mov byte [ebp - 0xad], 0x7f
mov byte [ebp - 0xac], 0xb0
mov byte [ebp - 0xab], 0x7b
mov byte [ebp - 0xaa], 0xda
mov byte [ebp - 0xa9], 0xa
mov byte [ebp - 0xa8], 0x20
mov byte [ebp - 0xa7], 3
mov byte [ebp - 0xa6], 0x13
mov byte [ebp - 0xa5], 1
mov byte [ebp - 0xa4], 0x33
mov byte [ebp - 0xa3], 0xc
mov byte [ebp - 0xa2], 0x32
mov byte [ebp - 0xa1], 9
mov byte [ebp - 0xa0], 0x39
mov byte [ebp - 0x9f], 5
mov byte [ebp - 0x9e], 0x1c
mov byte [ebp - 0x9d], 0
mov byte [ebp - 0x9c], 0x35
mov byte [ebp - 0x9b], 7
mov byte [ebp - 0x9a], 0x2e
mov byte [ebp - 0x99], 6
mov byte [ebp - 0x98], 0x1a
mov byte [ebp - 0x97], 0xb
mov byte [ebp - 0x96], 0xb
xor eax, eax
inc eax
shl eax, 0
movzx eax, byte [ebp + eax - 0xd8]
or eax, 0x24
xor ecx, ecx
inc ecx
shl ecx, 0
movzx ecx, byte [ebp + ecx - 0xd8]
and ecx, 0x24
sub eax, ecx
xor ecx, ecx
inc ecx
imul ecx, ecx, 0
movzx ecx, byte [ebp + ecx - 0xd8]
mov byte [ebp + ecx - 0x15c], al
mov dword [ebp - 0x14], 2
and dword [ebp - 0x58], 0
jmp 0x100217e8
mov eax, dword [ebp - 0x14]
inc eax
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x43
jae 0x10021892
xor eax, eax
inc eax
imul eax, eax, 0
movzx eax, byte [ebp + eax - 0xd8]
lea eax, [eax + eax + 2]
cmp dword [ebp - 0x14], eax
jne 0x1002182f
mov eax, dword [ebp - 0x14]
movzx eax, byte [ebp + eax - 0xd8]
inc eax
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [ebp + eax - 0xd8]
mov ecx, dword [ebp - 0x14]
lea eax, [ecx + eax - 1]
mov dword [ebp - 0x14], eax
jmp 0x100217e0
mov eax, dword [ebp - 0x14]
movzx eax, byte [ebp + eax - 0xd7]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x58]
movzx ecx, byte [ebp + ecx - 0xda]
movsx ecx, byte [ebp + ecx - 0x15c]
or eax, ecx
mov ecx, dword [ebp - 0x14]
movzx ecx, byte [ebp + ecx - 0xd7]
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x58]
movzx edx, byte [ebp + edx - 0xda]
movsx edx, byte [ebp + edx - 0x15c]
and ecx, edx
sub eax, ecx
mov ecx, dword [ebp - 0x14]
movzx ecx, byte [ebp + ecx - 0xd8]
mov byte [ebp + ecx - 0x15c], al
and dword [ebp - 0x58], 0
jmp 0x100217e0
xor eax, eax
inc eax
imul eax, eax, 0xd
mov byte [ebp + eax - 0x15c], 0
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0x204]
call fcn.100227c6
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x170], eax
and dword [ebp - 4], 0
mov edx, dword [ebp - 0x140]
mov ecx, dword [ebp - 0x170]
call fcn.10018ad0
mov dword [0x1066de50], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x204]
call fcn.10016d3e
and dword [ebp - 0x5c], 0
jmp 0x100218fa
mov eax, dword [ebp - 0x5c]
inc eax
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0xe
jae 0x1002190d
mov eax, dword [ebp - 0x5c]
mov byte [ebp + eax - 0x15c], 0
jmp 0x100218f3
mov byte [ebp - 0x12c], 9
mov byte [ebp - 0x12b], 0x85
mov byte [ebp - 0x12a], 0xd
mov byte [ebp - 0x129], 0x34
mov byte [ebp - 0x128], 2
mov byte [ebp - 0x127], 0x32
mov byte [ebp - 0x126], 3
mov byte [ebp - 0x125], 4
mov byte [ebp - 0x124], 0xa
mov byte [ebp - 0x123], 4
mov byte [ebp - 0x122], 4
mov byte [ebp - 0x121], 0x11
mov byte [ebp - 0x120], 0xc
mov byte [ebp - 0x11f], 7
mov byte [ebp - 0x11e], 1
mov byte [ebp - 0x11d], 1
mov byte [ebp - 0x11c], 0xb
mov byte [ebp - 0x11b], 1
mov byte [ebp - 0x11a], 5
mov byte [ebp - 0x119], 0x16
mov byte [ebp - 0x118], 0x37
mov byte [ebp - 0x117], 0xae
mov byte [ebp - 0x116], 0x98
mov byte [ebp - 0x115], 0x52
mov byte [ebp - 0x114], 0x62
mov byte [ebp - 0x113], 0x64
mov byte [ebp - 0x112], 0xc2
mov byte [ebp - 0x111], 0x31
mov byte [ebp - 0x110], 0xdd
mov byte [ebp - 0x10f], 0xf2
mov byte [ebp - 0x10e], 0x96
mov byte [ebp - 0x10d], 0x30
mov byte [ebp - 0x10c], 0x8c
mov byte [ebp - 0x10b], 0xe
mov byte [ebp - 0x10a], 0x57
mov byte [ebp - 0x109], 0xa3
mov byte [ebp - 0x108], 0xd6
mov byte [ebp - 0x107], 0
mov byte [ebp - 0x106], 0xdc
mov byte [ebp - 0x105], 0x9e
mov byte [ebp - 0x104], pe_nt_image_headers32
mov byte [ebp - 0x103], 0xcc
mov byte [ebp - 0x102], 0x36
mov byte [ebp - 0x101], 0x62
mov byte [ebp - 0x100], 0x75
mov byte [ebp - 0xff], 0x47
mov byte [ebp - 0xfe], 0xfb
mov byte [ebp - 0xfd], 0xb6
mov byte [ebp - 0xfc], 0xb2
mov byte [ebp - 0xfb], 0x59
mov byte [ebp - 0xfa], 0x86
mov byte [ebp - 0xf9], 0x93
mov byte [ebp - 0xf8], 0x77
mov byte [ebp - 0xf7], 0x81
mov byte [ebp - 0xf6], 0x81
mov byte [ebp - 0xf5], 0x37
mov byte [ebp - 0xf4], 5
mov byte [ebp - 0xf3], 0x4f
mov byte [ebp - 0xf2], 0xd
mov byte [ebp - 0xf1], 0x93
mov byte [ebp - 0xf0], 0xcb
mov byte [ebp - 0xef], 0x5d
mov byte [ebp - 0xee], 0xe0
mov byte [ebp - 0xed], 0xb5
mov byte [ebp - 0xec], 0xc6
mov byte [ebp - 0xeb], 0xb
mov byte [ebp - 0xea], 0xa4
mov byte [ebp - 0xe9], 0x8c
mov byte [ebp - 0xe8], 0x40
mov byte [ebp - 0xe7], 0x84
mov byte [ebp - 0xe6], 0x74
mov byte [ebp - 0xe5], 0x29
mov byte [ebp - 0xe4], 0x92
mov byte [ebp - 0xe3], 0xce
mov byte [ebp - 0xe2], 0x42
mov byte [ebp - 0xe1], 0xe9
mov byte [ebp - 0xe0], 7
mov byte [ebp - 0xdf], 0x17
mov byte [ebp - 0xde], 8
mov byte [ebp - 0xdd], 0x1d
mov byte [ebp - 0xdc], 6
mov byte [ebp - 0xdb], 0x3f
mov byte [ebp - 0xda], 0
mov byte [ebp - 0xd9], 0x13
xor eax, eax
inc eax
shl eax, 0
movzx eax, byte [ebp + eax - 0x12c]
or eax, 0xe6
xor ecx, ecx
inc ecx
shl ecx, 0
movzx ecx, byte [ebp + ecx - 0x12c]
and ecx, 0xe6
sub eax, ecx
xor ecx, ecx
inc ecx
imul ecx, ecx, 0
movzx ecx, byte [ebp + ecx - 0x12c]
mov byte [ebp + ecx - 0x180], al
mov dword [ebp - 0x18], 2
and dword [ebp - 0x50], 0
jmp 0x10021bac
mov eax, dword [ebp - 0x18]
inc eax
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x54
jae 0x10021c56
xor eax, eax
inc eax
imul eax, eax, 0
movzx eax, byte [ebp + eax - 0x12c]
lea eax, [eax + eax + 2]
cmp dword [ebp - 0x18], eax
jne 0x10021bf3
mov eax, dword [ebp - 0x18]
movzx eax, byte [ebp + eax - 0x12c]
inc eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [ebp + eax - 0x12c]
mov ecx, dword [ebp - 0x18]
lea eax, [ecx + eax - 1]
mov dword [ebp - 0x18], eax
jmp 0x10021ba4
mov eax, dword [ebp - 0x18]
movzx eax, byte [ebp + eax - 0x12b]
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x50]
movzx ecx, byte [ebp + ecx - 0x12e]
movsx ecx, byte [ebp + ecx - 0x180]
or eax, ecx
mov ecx, dword [ebp - 0x18]
movzx ecx, byte [ebp + ecx - 0x12b]
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0x50]
movzx edx, byte [ebp + edx - 0x12e]
movsx edx, byte [ebp + edx - 0x180]
and ecx, edx
sub eax, ecx
mov ecx, dword [ebp - 0x18]
movzx ecx, byte [ebp + ecx - 0x12c]
mov byte [ebp + ecx - 0x180], al
and dword [ebp - 0x50], 0
jmp 0x10021ba4
xor eax, eax
inc eax
imul eax, eax, 0xe
mov byte [ebp + eax - 0x180], 0
lea eax, [ebp - 0x180]
push eax
lea ecx, [ebp - 0x21c]
call fcn.100227c6
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x168], eax
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x140]
mov ecx, dword [ebp - 0x168]
call fcn.10018ad0
mov dword [0x1066df08], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.10016d3e
and dword [ebp - 0x54], 0
jmp 0x10021cc1
mov eax, dword [ebp - 0x54]
inc eax
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0xf
jae 0x10021cd4
mov eax, dword [ebp - 0x54]
mov byte [ebp + eax - 0x180], 0
jmp 0x10021cba
mov eax, dword [0x1066de50]
cmp eax, dword [ebp - 0x48]
je 0x10021ce8
mov eax, dword [0x1066df08]
cmp eax, dword [ebp - 0x48]
jne 0x10021d00
mov ecx, dword [ebp + 0xc]
call fcn.10016d9a
push eax
push dword [ebp + 8]
call fcn.10020c49
pop ecx
pop ecx
jmp 0x100223e1
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x100223df
mov eax, dword [ebp - 0x44]
movzx eax, word [eax]
cmp eax, 0x5a4d
jne 0x100223df
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x44]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x3c]
cmp dword [eax], 0x4550
jne 0x100223df
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 0x74], 0
jbe 0x100223df
push 8
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx + eax + 0x78], 0
je 0x100223df
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
push 8
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
add edx, dword [ecx + eax + 0x78]
mov dword [ebp - 0x24], edx
mov eax, 0xffff
mov word [ebp - 0x1c], ax
or dword [ebp - 0x34], 0xffffffff
cmp dword [ebp + 0x10], 0
jbe 0x10021da1
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [eax + 0x14]
ja 0x10021d9c
mov eax, dword [ebp + 0x10]
dec eax
mov word [ebp - 0x1c], ax
jmp 0x10021f37
mov eax, dword [0x1066df6c]
and eax, 1
jne 0x10021dd8
mov eax, dword [0x1066df6c]
or eax, 1
mov dword [0x1066df6c], eax
mov dword [ebp - 4], 2
mov ecx, 0x1066df70
call fcn.10016ec9
push 0x1007d66b
call fcn.10064bc6
pop ecx
or dword [ebp - 4], 0xffffffff
movzx eax, byte [0x1066de4b]
test eax, eax
je 0x10021e3e
mov ecx, 0x1066df70
call fcn.10022844
movzx eax, al
test eax, eax
jne 0x10021e3e
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x144]
push eax
mov ecx, 0x1066df70
call fcn.10016ea1
lea eax, [ebp - 0x18c]
push eax
mov ecx, 0x1066df70
call fcn.10016e93
push eax
lea ecx, [ebp - 0x144]
call fcn.10016eb6
movzx eax, al
test eax, eax
je 0x10021e3e
lea ecx, [ebp - 0x144]
call fcn.1002284d
mov eax, dword [eax + 4]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
jne 0x10021f37
mov ecx, 0x1066df70
call fcn.1000917c
mov ecx, dword [ebp - 0x24]
add eax, dword [ecx + 0x18]
push eax
mov ecx, 0x1066df70
call fcn.10022891
and dword [ebp - 0x30], 0
jmp 0x10021e70
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [eax + 0x18]
jae 0x10021f37
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x38]
add ecx, dword [eax + 0x20]
mov eax, dword [ebp - 0x30]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
je 0x10021f32
mov eax, dword [ebp - 0x134]
mov ecx, dword [ebp - 0x38]
add ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x1ec]
call fcn.100227c6
mov dword [ebp - 4], 3
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x1ec]
call fcn.10018ad0
mov dword [ebp - 0x138], eax
movzx eax, byte [0x1066de4b]
test eax, eax
je 0x10021eef
mov ecx, 0x1066df70
call fcn.10022844
movzx eax, al
test eax, eax
jne 0x10021f0c
lea eax, [ebp - 0x138]
push eax
mov ecx, 0x1066df70
call fcn.10022853
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
mov byte [0x1066de4b], 1
cmp dword [ebp - 0x34], 0xffffffff
jne 0x10021f23
mov eax, dword [ebp - 0x138]
cmp eax, dword [ebp - 0x48]
jne 0x10021f23
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1ec]
call fcn.10016d3e
jmp 0x10021e69
cmp dword [ebp + 0x10], 0
jne 0x10021f57
cmp dword [ebp - 0x34], 0xffffffff
je 0x10021f57
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x38]
add ecx, dword [eax + 0x24]
mov eax, dword [ebp - 0x34]
mov ax, word [ecx + eax*2]
mov word [ebp - 0x1c], ax
movzx eax, word [ebp - 0x1c]
cmp eax, 0xffff
je 0x100223df
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x38]
add ecx, dword [eax + 0x1c]
movzx eax, word [ebp - 0x1c]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
mov ecx, dword [ebp - 0x38]
add ecx, dword [eax]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x24]
jbe 0x100223da
push 8
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x24]
add edx, dword [ecx + eax + 0x7c]
cmp dword [ebp - 0x20], edx
jae 0x100223da
mov eax, dword [0x1066df6c]
and eax, 2
jne 0x10021fe1
mov eax, dword [0x1066df6c]
or eax, 2
mov dword [0x1066df6c], eax
mov dword [ebp - 4], 4
push 0x5119
call fcn.100138da
pop ecx
mov byte [0x1066df90], al
or dword [ebp - 4], 0xffffffff
mov byte [ebp - 0x94], 1
mov byte [ebp - 0x93], 0xba
mov byte [ebp - 0x92], 2
mov byte [ebp - 0x91], 0
mov byte [ebp - 0x90], 0x31
mov byte [ebp - 0x8f], 0x85
mov byte [ebp - 0x8e], 0x97
mov byte [ebp - 0x8d], 0xdf
mov byte [ebp - 0x8c], 0x52
mov byte [ebp - 0x8b], 0x1e
mov byte [ebp - 0x8a], 0xb
mov byte [ebp - 0x89], 0x57
mov byte [ebp - 0x88], 0xde
mov byte [ebp - 0x87], 0x55
mov byte [ebp - 0x86], 0x24
mov byte [ebp - 0x85], 0x4c
mov byte [ebp - 0x84], 0xd3
mov byte [ebp - 0x83], 0x41
mov byte [ebp - 0x82], 0x1c
mov byte [ebp - 0x81], 0xdc
mov byte [ebp - 0x80], 0x24
mov byte [ebp - 0x7f], 0x65
mov byte [ebp - 0x7e], 6
mov byte [ebp - 0x7d], 0xbb
mov byte [ebp - 0x7c], 0x4e
mov byte [ebp - 0x7b], 0x46
mov byte [ebp - 0x7a], 0x2a
mov byte [ebp - 0x79], 0xce
mov byte [ebp - 0x78], 0x16
mov byte [ebp - 0x77], 0x76
mov byte [ebp - 0x76], 0xea
mov byte [ebp - 0x75], 0xe3
mov byte [ebp - 0x74], 0x71
mov byte [ebp - 0x73], 0x2f
mov byte [ebp - 0x72], 0x89
mov byte [ebp - 0x71], 0xac
mov byte [ebp - 0x70], 0xac
mov byte [ebp - 0x6f], 0xb3
mov byte [ebp - 0x6e], 0xe
mov byte [ebp - 0x6d], 0xda
mov byte [ebp - 0x6c], 0x99
mov byte [ebp - 0x6b], 0x86
mov byte [ebp - 0x6a], 0xbb
mov byte [ebp - 0x69], 0x8b
mov byte [ebp - 0x68], 0xef
mov byte [ebp - 0x67], 0x2b
mov byte [ebp - 0x66], 0x51
mov byte [ebp - 0x65], 0x56
mov byte [ebp - 0x64], 0x17
mov byte [ebp - 0x63], 0x86
mov byte [ebp - 0x62], 5
mov byte [ebp - 0x61], 0xba
mov byte [ebp - 0x60], 0x89
mov byte [ebp - 0x5f], 0x16
mov byte [ebp - 0x5e], 0
mov byte [ebp - 0x5d], 8
xor eax, eax
inc eax
shl eax, 0
movzx eax, byte [ebp + eax - 0x94]
or eax, 0xd6
xor ecx, ecx
inc ecx
shl ecx, 0
movzx ecx, byte [ebp + ecx - 0x94]
and ecx, 0xd6
sub eax, ecx
xor ecx, ecx
inc ecx
imul ecx, ecx, 0
movzx ecx, byte [ebp + ecx - 0x94]
mov byte [ebp + ecx - 0x2c], al
mov dword [ebp - 0x10], 2
and dword [ebp - 0x40], 0
jmp 0x1002214d
mov eax, dword [ebp - 0x10]
inc eax
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x38
jae 0x10022210
xor eax, eax
inc eax
imul eax, eax, 0
movzx eax, byte [ebp + eax - 0x94]
lea eax, [eax + eax + 2]
cmp dword [ebp - 0x10], eax
jne 0x10022194
mov eax, dword [ebp - 0x10]
movzx eax, byte [ebp + eax - 0x94]
inc eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [ebp + eax - 0x94]
mov ecx, dword [ebp - 0x10]
lea eax, [ecx + eax - 1]
mov dword [ebp - 0x10], eax
jmp 0x10022145
mov eax, dword [ebp - 0x10]
movzx eax, byte [ebp + eax - 0x93]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x40]
movzx ecx, byte [ebp + ecx - 0x96]
movsx ecx, byte [ebp + ecx - 0x2c]
add eax, ecx
mov ecx, dword [ebp - 0x10]
movzx ecx, byte [ebp + ecx - 0x93]
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x40]
movzx edx, byte [ebp + edx - 0x96]
movsx edx, byte [ebp + edx - 0x2c]
and ecx, edx
sub eax, ecx
mov ecx, dword [ebp - 0x10]
movzx ecx, byte [ebp + ecx - 0x93]
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x40]
movzx edx, byte [ebp + edx - 0x96]
movsx edx, byte [ebp + edx - 0x2c]
and ecx, edx
sub eax, ecx
mov ecx, dword [ebp - 0x10]
movzx ecx, byte [ebp + ecx - 0x94]
mov byte [ebp + ecx - 0x2c], al
and dword [ebp - 0x40], 0
jmp 0x10022145
xor eax, eax
inc eax
imul eax, eax, 3
mov byte [ebp + eax - 0x2c], 0
mov eax, dword [0x1066df6c]
and eax, 4
jne 0x10022256
mov eax, dword [0x1066df6c]
or eax, 4
mov dword [0x1066df6c], eax
mov dword [ebp - 4], 5
lea eax, [ebp - 0x2c]
push eax
mov ecx, 0x1066df30
call fcn.100227c6
push 0x1007d65c
call fcn.10064bc6
pop ecx
or dword [ebp - 4], 0xffffffff
and dword [ebp - 0x4c], 0
jmp 0x10022263
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 4
jae 0x10022273
mov eax, dword [ebp - 0x4c]
mov byte [ebp + eax - 0x2c], 0
jmp 0x1002225c
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
movsx eax, byte [eax]
movsx ecx, byte [0x1066df90]
cmp eax, ecx
je 0x10022293
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
jmp 0x10022279
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
push dword [ebp - 0x28]
push dword [ebp - 0x20]
lea ecx, [ebp - 0x1a4]
call fcn.10022c28
mov dword [ebp - 4], 6
push 0x1066df30
lea ecx, [ebp - 0x1a4]
call fcn.100227f5
lea eax, [ebp - 0x188]
push eax
lea ecx, [ebp - 0x1a4]
call fcn.100174db
push dword [eax]
lea eax, [ebp - 0x184]
push eax
lea ecx, [ebp - 0x1a4]
call fcn.100174c7
push dword [eax]
lea ecx, [ebp - 0x1d4]
call fcn.10022c51
mov byte [ebp - 4], 7
lea eax, [ebp - 0x1d4]
push eax
call fcn.1001a59e
pop ecx
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
je 0x10022389
push dword [ebp - 0x28]
lea ecx, [ebp - 0x1bc]
call fcn.100227c6
mov byte [ebp - 4], 8
lea edx, [ebp - 0x164]
lea ecx, [ebp - 0x1bc]
call fcn.10018b78
movzx eax, al
test eax, eax
je 0x1002235c
push 0
push dword [ebp - 0x164]
push 0
push dword [ebp - 0x130]
call fcn.10021543
add esp, 0x10
mov dword [ebp - 0x20], eax
jmp 0x10022378
push 1
push 0
lea eax, [ebp - 0x1bc]
push eax
push dword [ebp - 0x130]
call fcn.10021543
add esp, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1bc]
call fcn.10016d3e
jmp 0x100223bc
cmp dword [ebp + 0x10], 0
jne 0x1002239f
mov ecx, dword [ebp + 0xc]
call fcn.10016d9a
mov dword [ebp - 0x13c], eax
jmp 0x100223a9
movzx eax, word [ebp + 0x10]
mov dword [ebp - 0x13c], eax
push dword [ebp - 0x13c]
push dword [ebp + 8]
call fcn.10020c49
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1d4]
call fcn.10016c16
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1a4]
call fcn.10016d3e
mov eax, dword [ebp - 0x20]
jmp 0x100223e1
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret