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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007ff1a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1e8
cmp dword [ebp + 0x10], 0
jbe 0x10021c7e
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x10021c7e
movzx eax, word [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.1002152e
pop ecx
pop ecx
jmp 0x100229ca
cmp dword [ebp + 0x10], 0
jne 0x100223fc
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
call fcn.100187c0
mov dword [ebp - 0x54], eax
cmp dword [0x10671734], 0
jne 0x100223d0
mov dword [ebp - 0x138], 0x3ab6
lea eax, [ebp - 0x138]
push eax
call fcn.10021400
pop ecx
mov dword [ebp - 0x114], eax
mov byte [ebp - 0xac], 0xa
mov byte [ebp - 0xab], 0xd4
mov byte [ebp - 0xaa], 3
mov byte [ebp - 0xa9], 0x13
mov byte [ebp - 0xa8], 7
mov byte [ebp - 0xa7], 0x3f
mov byte [ebp - 0xa6], 0xc
mov byte [ebp - 0xa5], 0x3e
mov byte [ebp - 0xa4], 5
mov byte [ebp - 0xa3], 0x25
mov byte [ebp - 0xa2], 2
mov byte [ebp - 0xa1], 6
mov byte [ebp - 0xa0], 8
mov byte [ebp - 0x9f], 0x1b
mov byte [ebp - 0x9e], 0
mov byte [ebp - 0x9d], 0x28
mov byte [ebp - 0x9c], 6
mov byte [ebp - 0x9b], 0x34
mov byte [ebp - 0x9a], 0xb
mov byte [ebp - 0x99], 0xb
mov byte [ebp - 0x98], 1
mov byte [ebp - 0x97], 0x1d
mov byte [ebp - 0x96], 0x28
mov byte [ebp - 0x95], 0x8b
mov byte [ebp - 0x94], 0xd2
mov byte [ebp - 0x93], 0xb2
mov byte [ebp - 0x92], 0xbd
mov byte [ebp - 0x91], 8
mov byte [ebp - 0x90], 0x5d
mov byte [ebp - 0x8f], 0x8f
mov byte [ebp - 0x8e], 0x2d
mov byte [ebp - 0x8d], 0xa0
mov byte [ebp - 0x8c], 0x77
mov byte [ebp - 0x8b], 0xdf
mov byte [ebp - 0x8a], 0x9c
mov byte [ebp - 0x89], 0x89
mov byte [ebp - 0x88], 0x7a
mov byte [ebp - 0x87], 0x60
mov byte [ebp - 0x86], 0x27
mov byte [ebp - 0x85], 0x4e
mov byte [ebp - 0x84], 0x7b
mov byte [ebp - 0x83], 0xfe
mov byte [ebp - 0x82], 0x4b
mov byte [ebp - 0x81], 0x4a
mov byte [ebp - 0x80], 0xa1
mov byte [ebp - 0x7f], 0x4c
mov byte [ebp - 0x7e], 0xf6
mov byte [ebp - 0x7d], 0x94
mov byte [ebp - 0x7c], 0xbd
mov byte [ebp - 0x7b], 0xd6
mov byte [ebp - 0x7a], 0x3f
mov byte [ebp - 0x79], 0x6e
mov byte [ebp - 0x78], 0xcc
mov byte [ebp - 0x77], 0xae
mov byte [ebp - 0x76], 0xa4
mov byte [ebp - 0x75], 0x89
mov byte [ebp - 0x74], 0xef
mov byte [ebp - 0x73], 7
mov byte [ebp - 0x72], 0x81
mov byte [ebp - 0x71], 0xb9
mov byte [ebp - 0x70], 0xa8
mov byte [ebp - 0x6f], 0x1e
mov byte [ebp - 0x6e], 0x1a
mov byte [ebp - 0x6d], 4
mov byte [ebp - 0x6c], 0
mov byte [ebp - 0x6b], 9
mov byte [ebp - 0x6a], 0xb
xor eax, eax
inc eax
shl eax, 0
movzx eax, byte [ebp + eax - 0xac]
or eax, 0x91
xor ecx, ecx
inc ecx
shl ecx, 0
movzx ecx, byte [ebp + ecx - 0xac]
and ecx, 0x91
sub eax, ecx
xor ecx, ecx
inc ecx
imul ecx, ecx, 0
movzx ecx, byte [ebp + ecx - 0xac]
mov byte [ebp + ecx - 0x148], al
mov dword [ebp - 0x18], 2
and dword [ebp - 0x64], 0
jmp 0x10021ea3
mov eax, dword [ebp - 0x18]
inc eax
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x43
jae 0x10021f4d
xor eax, eax
inc eax
imul eax, eax, 0
movzx eax, byte [ebp + eax - 0xac]
lea eax, [eax + eax + 2]
cmp dword [ebp - 0x18], eax
jne 0x10021eea
mov eax, dword [ebp - 0x18]
movzx eax, byte [ebp + eax - 0xac]
inc eax
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [ebp + eax - 0xac]
mov ecx, dword [ebp - 0x18]
lea eax, [ecx + eax - 1]
mov dword [ebp - 0x18], eax
jmp 0x10021e9b
mov eax, dword [ebp - 0x18]
movzx eax, byte [ebp + eax - 0xab]
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x64]
movzx ecx, byte [ebp + ecx - 0xae]
movsx ecx, byte [ebp + ecx - 0x148]
or eax, ecx
mov ecx, dword [ebp - 0x18]
movzx ecx, byte [ebp + ecx - 0xab]
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0x64]
movzx edx, byte [ebp + edx - 0xae]
movsx edx, byte [ebp + edx - 0x148]
and ecx, edx
sub eax, ecx
mov ecx, dword [ebp - 0x18]
movzx ecx, byte [ebp + ecx - 0xac]
mov byte [ebp + ecx - 0x148], al
and dword [ebp - 0x64], 0
jmp 0x10021e9b
xor eax, eax
inc eax
imul eax, eax, 0xd
mov byte [ebp + eax - 0x148], 0
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0x1f4]
call fcn.10022e4c
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x134], eax
and dword [ebp - 4], 0
mov edx, dword [ebp - 0x114]
mov ecx, dword [ebp - 0x134]
call fcn.100187c0
mov dword [0x10671734], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1f4]
call fcn.10016bf9
and dword [ebp - 0x68], 0
jmp 0x10021fb5
mov eax, dword [ebp - 0x68]
inc eax
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0xe
jae 0x10021fc8
mov eax, dword [ebp - 0x68]
mov byte [ebp + eax - 0x148], 0
jmp 0x10021fae
mov byte [ebp - 0x104], 3
mov byte [ebp - 0x103], 0xa3
mov byte [ebp - 0x102], 0xd
mov byte [ebp - 0x101], 0x36
mov byte [ebp - 0x100], 2
mov byte [ebp - 0xff], 0x32
mov byte [ebp - 0xfe], 8
mov byte [ebp - 0xfd], 0xa
mov byte [ebp - 0xfc], 0x3b
mov byte [ebp - 0xfb], 0xfe
mov byte [ebp - 0xfa], 0xc3
mov byte [ebp - 0xf9], 0x6b
mov byte [ebp - 0xf8], 0x38
mov byte [ebp - 0xf7], 0xdc
mov byte [ebp - 0xf6], 0
mov byte [ebp - 0xf5], 4
mov byte [ebp - 0xf4], 0x1a
mov byte [ebp - 0xf3], 0xfc
mov byte [ebp - 0xf2], 0xf4
mov byte [ebp - 0xf1], 0x39
mov byte [ebp - 0xf0], 0x7f
mov byte [ebp - 0xef], 0xe7
mov byte [ebp - 0xee], 0x54
mov byte [ebp - 0xed], 0xcb
mov byte [ebp - 0xec], 0x65
mov byte [ebp - 0xeb], 0x2a
mov byte [ebp - 0xea], 0xc3
mov byte [ebp - 0xe9], 0xbc
mov byte [ebp - 0xe8], 0xd0
mov byte [ebp - 0xe7], 0xe7
mov byte [ebp - 0xe6], 0xe1
mov byte [ebp - 0xe5], 0x34
mov byte [ebp - 0xe4], 0xd4
mov byte [ebp - 0xe3], 0x79
mov byte [ebp - 0xe2], 0xd7
mov byte [ebp - 0xe1], 0x7f
mov byte [ebp - 0xe0], 0x7f
mov byte [ebp - 0xdf], 0x8d
mov byte [ebp - 0xde], 0xa1
mov byte [ebp - 0xdd], 0x33
mov byte [ebp - 0xdc], 0x37
mov byte [ebp - 0xdb], 0x48
mov byte [ebp - 0xda], 0x23
mov byte [ebp - 0xd9], 3
mov byte [ebp - 0xd8], 0xb
mov byte [ebp - 0xd7], 0xcc
mov byte [ebp - 0xd6], 0x47
mov byte [ebp - 0xd5], 0x6f
mov byte [ebp - 0xd4], 0xec
mov byte [ebp - 0xd3], 0x1f
mov byte [ebp - 0xd2], 0xb0
mov byte [ebp - 0xd1], 0x4c
mov byte [ebp - 0xd0], 0x76
mov byte [ebp - 0xcf], 0xe8
mov byte [ebp - 0xce], 0x36
mov byte [ebp - 0xcd], 0xcc
mov byte [ebp - 0xcc], 0x9c
mov byte [ebp - 0xcb], 0xf5
mov byte [ebp - 0xca], 0x42
mov byte [ebp - 0xc9], 0x84
mov byte [ebp - 0xc8], 0x6b
mov byte [ebp - 0xc7], 0xfe
mov byte [ebp - 0xc6], 0xc5
mov byte [ebp - 0xc5], 0x9b
mov byte [ebp - 0xc4], 0x44
mov byte [ebp - 0xc3], 0x92
mov byte [ebp - 0xc2], 0x48
mov byte [ebp - 0xc1], 0x25
mov byte [ebp - 0xc0], 4
mov byte [ebp - 0xbf], 0x1b
mov byte [ebp - 0xbe], 7
mov byte [ebp - 0xbd], 6
mov byte [ebp - 0xbc], 0
mov byte [ebp - 0xbb], 0x31
mov byte [ebp - 0xba], 0xa
mov byte [ebp - 0xb9], 0x26
mov byte [ebp - 0xb8], 5
mov byte [ebp - 0xb7], 0
mov byte [ebp - 0xb6], 1
mov byte [ebp - 0xb5], 0x17
mov byte [ebp - 0xb4], 9
mov byte [ebp - 0xb3], 0x11
mov byte [ebp - 0xb2], 0xc
mov byte [ebp - 0xb1], 0x10
mov byte [ebp - 0xb0], 0xb
mov byte [ebp - 0xaf], 0
mov byte [ebp - 0xae], 6
mov byte [ebp - 0xad], 0x23
xor eax, eax
inc eax
shl eax, 0
movzx eax, byte [ebp + eax - 0x104]
or eax, 0xc2
xor ecx, ecx
inc ecx
shl ecx, 0
movzx ecx, byte [ebp + ecx - 0x104]
and ecx, 0xc2
sub eax, ecx
xor ecx, ecx
inc ecx
imul ecx, ecx, 0
movzx ecx, byte [ebp + ecx - 0x104]
mov byte [ebp + ecx - 0x12c], al
mov dword [ebp - 0x10], 2
and dword [ebp - 0x48], 0
jmp 0x10022283
mov eax, dword [ebp - 0x10]
inc eax
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x58
jae 0x10022352
xor eax, eax
inc eax
imul eax, eax, 0
movzx eax, byte [ebp + eax - 0x104]
lea eax, [eax + eax + 2]
cmp dword [ebp - 0x10], eax
jne 0x100222ca
mov eax, dword [ebp - 0x10]
movzx eax, byte [ebp + eax - 0x104]
inc eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [ebp + eax - 0x104]
mov ecx, dword [ebp - 0x10]
lea eax, [ecx + eax - 1]
mov dword [ebp - 0x10], eax
jmp 0x1002227b
mov eax, dword [ebp - 0x10]
movzx eax, byte [ebp + eax - 0x103]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x48]
movzx ecx, byte [ebp + ecx - 0x106]
movsx ecx, byte [ebp + ecx - 0x12c]
add eax, ecx
mov ecx, dword [ebp - 0x10]
movzx ecx, byte [ebp + ecx - 0x103]
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x48]
movzx edx, byte [ebp + edx - 0x106]
movsx edx, byte [ebp + edx - 0x12c]
and ecx, edx
sub eax, ecx
mov ecx, dword [ebp - 0x10]
movzx ecx, byte [ebp + ecx - 0x103]
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x48]
movzx edx, byte [ebp + edx - 0x106]
movsx edx, byte [ebp + edx - 0x12c]
and ecx, edx
sub eax, ecx
mov ecx, dword [ebp - 0x10]
movzx ecx, byte [ebp + ecx - 0x104]
mov byte [ebp + ecx - 0x12c], al
and dword [ebp - 0x48], 0
jmp 0x1002227b
xor eax, eax
inc eax
imul eax, eax, 0xe
mov byte [ebp + eax - 0x12c], 0
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x1dc]
call fcn.10022e4c
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x158], eax
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x114]
mov ecx, dword [ebp - 0x158]
call fcn.100187c0
mov dword [0x106717ec], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1dc]
call fcn.10016bf9
and dword [ebp - 0x5c], 0
jmp 0x100223bd
mov eax, dword [ebp - 0x5c]
inc eax
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0xf
jae 0x100223d0
mov eax, dword [ebp - 0x5c]
mov byte [ebp + eax - 0x12c], 0
jmp 0x100223b6
mov eax, dword [0x10671734]
cmp eax, dword [ebp - 0x54]
je 0x100223e4
mov eax, dword [0x106717ec]
cmp eax, dword [ebp - 0x54]
jne 0x100223fc
mov ecx, dword [ebp + 0xc]
call fcn.10016c55
push eax
push dword [ebp + 8]
call fcn.1002152e
pop ecx
pop ecx
jmp 0x100229ca
mov eax, dword [ebp + 8]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
je 0x100229c8
mov eax, dword [ebp - 0x60]
movzx eax, word [eax]
cmp eax, 0x5a4d
jne 0x100229c8
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x60]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp - 0x4c]
cmp dword [eax], 0x4550
jne 0x100229c8
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 0x74], 0
jbe 0x100229c8
push 8
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x4c]
cmp dword [ecx + eax + 0x78], 0
je 0x100229c8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
push 8
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x40]
add edx, dword [ecx + eax + 0x78]
mov dword [ebp - 0x24], edx
mov eax, 0xffff
mov word [ebp - 0x1c], ax
or dword [ebp - 0x44], 0xffffffff
cmp dword [ebp + 0x10], 0
jbe 0x1002249d
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [eax + 0x14]
ja 0x10022498
mov eax, dword [ebp + 0x10]
dec eax
mov word [ebp - 0x1c], ax
jmp 0x10022633
mov eax, dword [0x10671854]
and eax, 1
jne 0x100224d4
mov eax, dword [0x10671854]
or eax, 1
mov dword [0x10671854], eax
mov dword [ebp - 4], 2
mov ecx, 0x10671858
call fcn.10016d84
push 0x1008138b
call fcn.100669e6
pop ecx
or dword [ebp - 4], 0xffffffff
movzx eax, byte [0x1067172e]
test eax, eax
je 0x1002253a
mov ecx, 0x10671858
call fcn.10022eca
movzx eax, al
test eax, eax
jne 0x1002253a
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x118]
push eax
mov ecx, 0x10671858
call fcn.10016d5c
lea eax, [ebp - 0x164]
push eax
mov ecx, 0x10671858
call fcn.10016d4e
push eax
lea ecx, [ebp - 0x118]
call fcn.10016d71
movzx eax, al
test eax, eax
je 0x1002253a
lea ecx, [ebp - 0x118]
call fcn.10022ed3
mov eax, dword [eax + 4]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0xffffffff
jne 0x10022633
mov ecx, 0x10671858
call fcn.10009377
mov ecx, dword [ebp - 0x24]
add eax, dword [ecx + 0x18]
push eax
mov ecx, 0x10671858
call fcn.10022f17
and dword [ebp - 0x3c], 0
jmp 0x1002256c
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [eax + 0x18]
jae 0x10022633
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x40]
add ecx, dword [eax + 0x20]
mov eax, dword [ebp - 0x3c]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
je 0x1002262e
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0x40]
add ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x1c4]
call fcn.10022e4c
mov dword [ebp - 4], 3
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x1c4]
call fcn.100187c0
mov dword [ebp - 0x11c], eax
movzx eax, byte [0x1067172e]
test eax, eax
je 0x100225eb
mov ecx, 0x10671858
call fcn.10022eca
movzx eax, al
test eax, eax
jne 0x10022608
lea eax, [ebp - 0x11c]
push eax
mov ecx, 0x10671858
call fcn.10022ed9
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
mov byte [0x1067172e], 1
cmp dword [ebp - 0x44], 0xffffffff
jne 0x1002261f
mov eax, dword [ebp - 0x11c]
cmp eax, dword [ebp - 0x54]
jne 0x1002261f
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c4]
call fcn.10016bf9
jmp 0x10022565
cmp dword [ebp + 0x10], 0
jne 0x10022653
cmp dword [ebp - 0x44], 0xffffffff
je 0x10022653
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x40]
add ecx, dword [eax + 0x24]
mov eax, dword [ebp - 0x44]
mov ax, word [ecx + eax*2]
mov word [ebp - 0x1c], ax
movzx eax, word [ebp - 0x1c]
cmp eax, 0xffff
je 0x100229c8
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x40]
add ecx, dword [eax + 0x1c]
movzx eax, word [ebp - 0x1c]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x130]
mov ecx, dword [ebp - 0x40]
add ecx, dword [eax]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x24]
jbe 0x100229c3
push 8
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x24]
add edx, dword [ecx + eax + 0x7c]
cmp dword [ebp - 0x20], edx
jae 0x100229c3
mov eax, dword [0x10671854]
and eax, 2
jne 0x100226dd
mov eax, dword [0x10671854]
or eax, 2
mov dword [0x10671854], eax
mov dword [ebp - 4], 4
push 0x3cce
call fcn.100144ce
pop ecx
mov byte [0x10671878], al
or dword [ebp - 4], 0xffffffff
mov byte [ebp - 0x30], 1
mov byte [ebp - 0x2f], 0xad
mov byte [ebp - 0x2e], 0
mov byte [ebp - 0x2d], 8
mov byte [ebp - 0x2c], 5
mov byte [ebp - 0x2b], 0x30
mov byte [ebp - 0x2a], 0x97
mov byte [ebp - 0x29], 0xeb
mov byte [ebp - 0x28], 0x43
mov byte [ebp - 0x27], 0xa1
mov byte [ebp - 0x26], 2
mov byte [ebp - 0x25], 8
xor eax, eax
inc eax
shl eax, 0
movzx eax, byte [ebp + eax - 0x30]
or eax, 0xc1
xor ecx, ecx
inc ecx
shl ecx, 0
movzx ecx, byte [ebp + ecx - 0x30]
and ecx, 0xc1
sub eax, ecx
xor ecx, ecx
inc ecx
imul ecx, ecx, 0
movzx ecx, byte [ebp + ecx - 0x30]
mov byte [ebp + ecx - 0x34], al
mov dword [ebp - 0x14], 2
and dword [ebp - 0x50], 0
jmp 0x10022754
mov eax, dword [ebp - 0x14]
inc eax
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xc
jae 0x100227f9
xor eax, eax
inc eax
imul eax, eax, 0
movzx eax, byte [ebp + eax - 0x30]
lea eax, [eax + eax + 2]
cmp dword [ebp - 0x14], eax
jne 0x10022792
mov eax, dword [ebp - 0x14]
movzx eax, byte [ebp + eax - 0x30]
inc eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [ebp + eax - 0x30]
mov ecx, dword [ebp - 0x14]
lea eax, [ecx + eax - 1]
mov dword [ebp - 0x14], eax
jmp 0x1002274c
mov eax, dword [ebp - 0x14]
movzx eax, byte [ebp + eax - 0x2f]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x50]
movzx ecx, byte [ebp + ecx - 0x32]
movsx ecx, byte [ebp + ecx - 0x34]
add eax, ecx
mov ecx, dword [ebp - 0x14]
movzx ecx, byte [ebp + ecx - 0x2f]
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x50]
movzx edx, byte [ebp + edx - 0x32]
movsx edx, byte [ebp + edx - 0x34]
and ecx, edx
sub eax, ecx
mov ecx, dword [ebp - 0x14]
movzx ecx, byte [ebp + ecx - 0x2f]
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x50]
movzx edx, byte [ebp + edx - 0x32]
movsx edx, byte [ebp + edx - 0x34]
and ecx, edx
sub eax, ecx
mov ecx, dword [ebp - 0x14]
movzx ecx, byte [ebp + ecx - 0x30]
mov byte [ebp + ecx - 0x34], al
and dword [ebp - 0x50], 0
jmp 0x1002274c
xor eax, eax
inc eax
imul eax, eax, 3
mov byte [ebp + eax - 0x34], 0
mov eax, dword [0x10671854]
and eax, 4
jne 0x1002283f
mov eax, dword [0x10671854]
or eax, 4
mov dword [0x10671854], eax
mov dword [ebp - 4], 5
lea eax, [ebp - 0x34]
push eax
mov ecx, 0x106717f8
call fcn.10022e4c
push 0x1008137c
call fcn.100669e6
pop ecx
or dword [ebp - 4], 0xffffffff
and dword [ebp - 0x58], 0
jmp 0x1002284c
mov eax, dword [ebp - 0x58]
inc eax
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 4
jae 0x1002285c
mov eax, dword [ebp - 0x58]
mov byte [ebp + eax - 0x34], 0
jmp 0x10022845
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
movsx eax, byte [eax]
movsx ecx, byte [0x10671878]
cmp eax, ecx
je 0x1002287c
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
jmp 0x10022862
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
push dword [ebp - 0x38]
push dword [ebp - 0x20]
lea ecx, [ebp - 0x17c]
call fcn.100232ae
mov dword [ebp - 4], 6
push 0x106717f8
lea ecx, [ebp - 0x17c]
call fcn.10022e7b
lea eax, [ebp - 0x160]
push eax
lea ecx, [ebp - 0x17c]
call fcn.10017312
push dword [eax]
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0x17c]
call fcn.100172fe
push dword [eax]
lea ecx, [ebp - 0x1ac]
call fcn.100232d7
mov byte [ebp - 4], 7
lea eax, [ebp - 0x1ac]
push eax
call fcn.1001a066
pop ecx
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
je 0x10022972
push dword [ebp - 0x38]
lea ecx, [ebp - 0x194]
call fcn.10022e4c
mov byte [ebp - 4], 8
lea edx, [ebp - 0x154]
lea ecx, [ebp - 0x194]
call fcn.10018868
movzx eax, al
test eax, eax
je 0x10022945
push 0
push dword [ebp - 0x154]
push 0
push dword [ebp - 0x108]
call fcn.10021c3e
add esp, 0x10
mov dword [ebp - 0x20], eax
jmp 0x10022961
push 1
push 0
lea eax, [ebp - 0x194]
push eax
push dword [ebp - 0x108]
call fcn.10021c3e
add esp, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x194]
call fcn.10016bf9
jmp 0x100229a5
cmp dword [ebp + 0x10], 0
jne 0x10022988
mov ecx, dword [ebp + 0xc]
call fcn.10016c55
mov dword [ebp - 0x110], eax
jmp 0x10022992
movzx eax, word [ebp + 0x10]
mov dword [ebp - 0x110], eax
push dword [ebp - 0x110]
push dword [ebp + 8]
call fcn.1002152e
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1ac]
call fcn.10016ad1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x17c]
call fcn.10016bf9
mov eax, dword [ebp - 0x20]
jmp 0x100229ca
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret