Function at 0x1002120e
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1002124c
push 0x240b
push 0x1506
push 0x1a2a
push 0x1e4d
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_ExcludeClipRect]
jmp 0x10021c52
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x94], 0xeec54165
mov dword [ebp - 0xf8], 0xffffffff
mov dword [ebp - 0x10], 0
jmp 0x10021288
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jge 0x1002129b
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x14], 1
jmp 0x10021281
mov dword [ebp - 0x10], 0
jmp 0x100212ab
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jge 0x100212c1
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x120], 0xc299e885
jmp 0x100212a4
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0x14], 0
jmp 0x100212e6
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x14]
inc eax
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 0x14], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x14], 0x1d
je 0x100213fc
mov dword [ebp - 0x2c], 0xfffffff9
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], eax
jle 0x10021312
mov dword [ebp - 0xbc], 1
jmp 0x10021319
and dword [ebp - 0xbc], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x14]
cmp dword [ebp - 0xbc], eax
jg 0x10021337
mov dword [ebp - 0xf0], 1
jmp 0x1002133e
and dword [ebp - 0xf0], 0
imul eax, dword [ebp - 0xf0], 0x849b
test eax, eax
jne 0x1002135b
cmp dword [ebp - 0x2c], 0
jne 0x1002135b
and dword [ebp - 0x8c], 0
jmp 0x10021365
mov dword [ebp - 0x8c], 1
mov eax, dword [ebp - 0x8c]
add eax, 0xd7d3
mov dword [ebp - 0xf8], eax
imul eax, dword [ebp - 0xf8], 0xffff
push 4
pop ecx
imul ecx, ecx, 0
mov ecx, dword [ebp + ecx - 0x14]
neg ecx
cmp ecx, eax
jne 0x1002139c
mov dword [ebp - 0x104], 1
jmp 0x100213a3
and dword [ebp - 0x104], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x14]
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
sub eax, dword [ebp - 0x2c]
push 4
pop ecx
imul ecx, ecx, 0
cmp eax, dword [ebp + ecx - 0x14]
jl 0x100213dd
mov dword [ebp - 0x100], 1
jmp 0x100213e4
and dword [ebp - 0x100], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x100]
mov dword [ebp + eax - 0x120], ecx
jmp 0x100212d1
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 4]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x68], 5
mov dword [ebp - 0x138], 9
mov dword [ebp - 0x40], 0
jmp 0x10021429
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 2
jge 0x1002143f
mov eax, dword [ebp - 0x40]
mov dword [ebp + eax*4 - 0x170], 0
jmp 0x10021422
mov dword [ebp - 0x68], 0
jmp 0x1002144f
mov eax, dword [ebp - 0x68]
inc eax
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 1
jg 0x1002146e
mov dword [ebp - 0x9c], 0xcbd94543
mov eax, dword [ebp - 0x9c]
inc eax
mov dword [ebp - 0x9c], eax
jmp 0x10021448
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x50]
mov ecx, dword [ecx]
movzx ecx, word [ecx + 0x14]
lea eax, [eax + ecx + 0x18]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x34], 0
jmp 0x10021493
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 1
jge 0x100214a6
mov eax, dword [ebp - 0x34]
mov dword [ebp + eax*4 - 0x64], 0xc75b57fd
jmp 0x1002148c
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0x64], 0xffffffff
jmp 0x100214cb
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x64]
inc eax
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 0x64], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x64], 0x15
jg 0x10021536
mov dword [ebp - 0x5c], 1
mov dword [ebp - 0x48], 0
jmp 0x100214ef
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 3
jge 0x10021505
mov eax, dword [ebp - 0x48]
mov dword [ebp + eax*4 - 0x18c], 0x2c7c
jmp 0x100214e8
mov dword [ebp - 0x5c], 2
jmp 0x10021515
mov eax, dword [ebp - 0x5c]
dec eax
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jl 0x10021534
mov byte [ebp - 0x15], 0
push 0
lea eax, [ebp - 0x15]
push eax
push 0x271c
call fcn.10020579
add esp, 0xc
jmp 0x1002150e
jmp 0x100214b6
and dword [ebp - 0x6c], 0
jmp 0x1002154c
mov eax, dword [ebp - 0x6c]
inc eax
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0xc]
add eax, 0x28
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
movzx eax, word [eax + 6]
cmp dword [ebp - 0x6c], eax
jge 0x10021c52
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x60], 0
jmp 0x10021575
mov eax, dword [ebp - 0x60]
inc eax
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 1
jge 0x10021588
mov eax, dword [ebp - 0x60]
mov dword [ebp + eax*4 - 0x38], 1
jmp 0x1002156e
mov dword [ebp - 0x24], 0x16
jmp 0x10021598
mov eax, dword [ebp - 0x24]
dec eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xb
jg 0x10021658
mov dword [ebp - 0x110], 0xfffffff7
mov dword [ebp - 0x130], 0xf82baef
mov dword [ebp - 0x58], 0
jmp 0x100215c6
mov eax, dword [ebp - 0x58]
inc eax
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 4
jge 0x100215dc
mov eax, dword [ebp - 0x58]
mov dword [ebp + eax*4 - 0x180], 0
jmp 0x100215bf
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0x38], 2
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x180]
mov dword [ebp - 0x144], eax
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x38]
mov dword [ebp - 0x160], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x38], 0
jne 0x10021628
cmp dword [ebp - 0x24], 0
jne 0x10021628
and dword [ebp - 0xf4], 0
jmp 0x10021632
mov dword [ebp - 0xf4], 1
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0x110], eax
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x38]
add eax, 0x7213ec75
mov dword [ebp - 0x130], eax
jmp 0x10021591
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x10], 0
jne 0x1002169c
push 0x574d
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0xc]
push 0x1d2f
push dword [ebp - 0x98]
push 0
push 0x507b
push dword [ebp - 0x118]
push 0x4ba
push 0xe63
call fcn.10020213
add esp, 0x28
jmp 0x1002153c
mov dword [ebp - 0x20], 6
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x44], 0x9017ca4e
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x108], 0xeb2d
mov dword [ebp - 0x10c], 8
mov dword [ebp - 0x3c], 0
jmp 0x100216dc
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 1
jge 0x100216f2
mov eax, dword [ebp - 0x3c]
mov dword [ebp + eax*4 - 0x128], 0
jmp 0x100216d5
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x168], eax
cmp dword [ebp - 0x44], 0
jne 0x1002171c
mov dword [ebp - 0xa4], 1
jmp 0x10021723
and dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0xa4], eax
jg 0x1002173a
mov dword [ebp - 0xd4], 1
jmp 0x10021741
and dword [ebp - 0xd4], 0
mov eax, dword [ebp - 0x44]
cmp dword [ebp - 0xd4], eax
jg 0x1002175b
cmp dword [ebp - 0x20], 0
jne 0x1002175b
and dword [ebp - 0xac], 0
jmp 0x10021765
mov dword [ebp - 0xac], 1
mov eax, dword [ebp - 0xac]
sub eax, dword [ebp - 0x20]
jne 0x10021779
mov dword [ebp - 0x78], 1
jmp 0x1002177d
and dword [ebp - 0x78], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x78]
mov dword [ebp + eax - 0x128], ecx
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x70], eax
jg 0x100217a7
mov dword [ebp - 0xec], 1
jmp 0x100217ae
and dword [ebp - 0xec], 0
mov eax, dword [ebp - 0x108]
cmp dword [ebp - 0xec], eax
je 0x100217c8
mov dword [ebp - 0xb4], 1
jmp 0x100217cf
and dword [ebp - 0xb4], 0
imul eax, dword [ebp - 0xb4], 0x50df
cmp eax, 0x8014
jle 0x100217ec
mov dword [ebp - 0xdc], 1
jmp 0x100217f3
and dword [ebp - 0xdc], 0
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0xdc]
je 0x1002180d
cmp dword [ebp - 0x70], 0
je 0x1002180d
mov dword [ebp - 0x80], 1
jmp 0x10021811
and dword [ebp - 0x80], 0
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x80]
imul eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x28]
jge 0x1002182c
mov dword [ebp - 0xfc], 1
jmp 0x10021833
and dword [ebp - 0xfc], 0
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0xfc]
jge 0x1002184a
mov dword [ebp - 0xc4], 1
jmp 0x10021851
and dword [ebp - 0xc4], 0
mov eax, dword [ebp - 0xc4]
sub eax, 5
cmp eax, dword [ebp - 0x10c]
jge 0x100218d9
mov dword [ebp - 0xe4], 0xffffffff
mov dword [ebp - 0x114], 0xfffffffb
mov dword [ebp - 0x4c], 0
jmp 0x10021886
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 2
jge 0x1002189c
mov eax, dword [ebp - 0x4c]
mov dword [ebp + eax*4 - 0x15c], 0xbe74
jmp 0x1002187f
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x15c]
mov dword [ebp - 0xe4], eax
cmp dword [ebp - 0xe4], 1
jg 0x100218c4
mov dword [ebp - 0xcc], 1
jmp 0x100218cb
and dword [ebp - 0xcc], 0
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x114], eax
jmp 0x100218ef
mov byte [ebp - 0x16], 0
movzx eax, byte [ebp - 0x16]
test eax, eax
je 0x100218ef
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommState]
push 4
push 0x1000
mov eax, dword [ebp - 0xc]
push dword [eax + 0x10]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x98]
add ecx, dword [eax + 0xc]
push ecx
push 0x880
push 0x67d
call fcn.1001dadc
pop ecx
pop ecx
call eax
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x10]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x11c]
add ecx, dword [eax + 0x14]
push ecx
push dword [ebp - 0x7c]
call fcn.1001dafe
add esp, 0xc
mov dword [ebp - 4], 0x56f9b2cf
mov dword [ebp - 0x134], 0xfffffff6
mov dword [ebp - 0x54], 0
jmp 0x1002195e
mov eax, dword [ebp - 0x54]
inc eax
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 1
jge 0x10021971
mov eax, dword [ebp - 0x54]
mov dword [ebp + eax*4 - 8], 0xdde0bcd8
jmp 0x10021957
mov dword [ebp - 4], 0
jmp 0x10021981
mov eax, dword [ebp - 4]
dec eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x10021aac
mov dword [ebp - 0x1c], 0xfffffffd
mov dword [ebp - 0x1c], 0
jmp 0x100219a2
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jg 0x10021aa7
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 8]
mov dword [ebp - 0x154], eax
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 8]
mov dword [ebp - 0x13c], eax
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 8]
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov ecx, dword [ebp + ecx*4 - 8]
cmp dword [ebp + eax*4 - 8], ecx
jge 0x10021a0b
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 8], 0
je 0x10021a0b
mov dword [ebp - 0xa0], 1
jmp 0x10021a12
and dword [ebp - 0xa0], 0
cmp dword [ebp - 0xa0], 1
jg 0x10021a27
mov dword [ebp - 0xa8], 1
jmp 0x10021a2e
and dword [ebp - 0xa8], 0
cmp dword [ebp - 0xa8], 0xe243
jne 0x10021a46
mov dword [ebp - 0xb0], 1
jmp 0x10021a4d
and dword [ebp - 0xb0], 0
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0xb0]
cmp eax, 0xa7609fa8
jne 0x10021a69
mov dword [ebp - 0xb8], 1
jmp 0x10021a70
and dword [ebp - 0xb8], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 8]
cmp dword [ebp - 0xb8], eax
jge 0x10021a8e
mov dword [ebp - 0xc0], 1
jmp 0x10021a95
and dword [ebp - 0xc0], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc0]
mov dword [ebp + eax*4 - 8], ecx
jmp 0x1002199b
jmp 0x1002197a
mov dword [ebp - 4], 0
jmp 0x10021abc
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 7
jge 0x10021c44
mov dword [ebp - 0x30], 1
mov dword [ebp - 0xd8], 0xfffffff6
mov dword [ebp - 0x74], 0xffffffff
mov dword [ebp - 0xc8], 7
mov dword [ebp - 0x12c], 6
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp + eax - 8], ecx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
je 0x10021b0f
cmp dword [ebp - 4], 0
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0xc8]
je 0x10021b35
cmp dword [ebp - 4], 0
je 0x10021b35
mov dword [ebp - 0xd0], 1
jmp 0x10021b3c
and dword [ebp - 0xd0], 0
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0xd0], eax
jle 0x10021b53
mov dword [ebp - 0x124], 1
jmp 0x10021b5a
and dword [ebp - 0x124], 0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x150], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 8], 0xe74
jne 0x10021b7f
mov dword [ebp - 0xe0], 1
jmp 0x10021b86
and dword [ebp - 0xe0], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 8]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xd8]
cmp eax, dword [ebp - 0xe0]
jg 0x10021bb0
mov dword [ebp - 0xe8], 1
jmp 0x10021bb7
and dword [ebp - 0xe8], 0
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xe8]
je 0x10021bce
mov dword [ebp - 0x84], 1
jmp 0x10021bd5
and dword [ebp - 0x84], 0
cmp dword [ebp - 0x84], 0xffffffff
jne 0x10021bed
cmp dword [ebp - 4], 0
jne 0x10021bed
and dword [ebp - 0x88], 0
jmp 0x10021bf7
mov dword [ebp - 0x88], 1
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 4], 0xfffffffd
jb 0x10021c1b
mov eax, 0xfffa
test eax, eax
jne 0x10021c1b
and dword [ebp - 0x90], 0
jmp 0x10021c25
mov dword [ebp - 0x90], 1
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x134], eax
push 0
push 0x3c67
call fcn.1002528b
pop ecx
pop ecx
jmp 0x10021ab5
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x7c]
mov dword [eax + 8], ecx
jmp 0x1002153c
mov esp, ebp
pop ebp
ret