Function at 0x1002816a
Capabilities:
Accept command line arguments
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10084de0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x104
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x10028744
mov eax, dword [ebp + 8]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc0], eax
push 2
lea ecx, [ebp - 0xe0]
call fcn.10018221
and dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
jmp 0x100281c7
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 2
jge 0x100281e3
push dword [ebp - 0x20]
lea ecx, [ebp - 0xe0]
call fcn.100182ab
mov dword [eax], 0xfffffffd
jmp 0x100281c0
push 0
lea ecx, [ebp - 0xe0]
call fcn.100182ab
mov dword [eax], 0x1c
jmp 0x10028213
push 0
lea ecx, [ebp - 0xe0]
call fcn.100182ab
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x64]
mov dword [ecx], eax
push 0
lea ecx, [ebp - 0xe0]
call fcn.100182ab
cmp dword [eax], 0xffffffe7
jg 0x1002823e
mov byte [ebp - 0x13], 0
movzx eax, byte [ebp - 0x13]
test eax, eax
je 0x1002823c
push 0x19ff
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
jmp 0x100281f8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe0]
call fcn.100182a6
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x7928fbc7
mov dword [ebp - 0x8c], 9
mov dword [ebp - 0x30], 0x4bb489f7
mov dword [ebp - 0xf8], 7
mov dword [ebp - 0x78], 0xffffffff
mov dword [ebp - 0x24], 0
jmp 0x1002828f
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 3
jge 0x100282a2
mov eax, dword [ebp - 0x24]
mov dword [ebp + eax*4 - 0x44], 0xe1757117
jmp 0x10028288
push 4
pop eax
shl eax, 1
mov dword [ebp + eax - 0x44], 0xffffffe7
jmp 0x100282c4
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x44]
inc eax
push 4
pop ecx
shl ecx, 1
mov dword [ebp + ecx - 0x44], eax
push 4
pop eax
shl eax, 1
cmp dword [ebp + eax - 0x44], 0x19
jle 0x100286be
mov dword [ebp - 0x10], 0xfffffff7
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x2c], 0xc37fc054
mov dword [ebp - 0xbc], 1
mov dword [ebp - 0x5c], 0xfffffffb
mov dword [ebp - 0x28], 0
jmp 0x1002830a
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 2
jge 0x10028320
mov eax, dword [ebp - 0x28]
mov dword [ebp + eax*4 - 0xb0], 0xffffffff
jmp 0x10028303
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x44]
cmp dword [ebp - 0x18], eax
jg 0x10028341
mov dword [ebp - 0xec], 1
jmp 0x10028348
and dword [ebp - 0xec], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x44]
mov dword [ebp - 0x100], eax
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x44]
cmp dword [ebp - 0x10], eax
jl 0x10028370
mov dword [ebp - 0x50], 1
jmp 0x10028374
and dword [ebp - 0x50], 0
cmp dword [ebp - 0x50], 0x91208373
ja 0x10028389
mov dword [ebp - 0xa4], 1
jmp 0x10028390
and dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x10], 0x9a2b
jl 0x100283b4
mov dword [ebp - 0x80], 1
jmp 0x100283b8
and dword [ebp - 0x80], 0
mov eax, dword [ebp - 0x80]
sub eax, dword [ebp - 0x10]
je 0x10028594
mov dword [ebp - 0x110], 0xfffffff7
mov dword [ebp - 0x38], 9
mov dword [ebp - 0x10c], 0xa7bc6c89
mov dword [ebp - 0xd4], 0x8927
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0xb0]
inc eax
push 4
pop ecx
shl ecx, 0
mov dword [ebp + ecx - 0xb0], eax
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x78], eax
jle 0x10028415
mov dword [ebp - 0x58], 1
jmp 0x10028419
and dword [ebp - 0x58], 0
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0xb0], 0xffffffff
jg 0x10028435
mov dword [ebp - 0xf4], 1
jmp 0x1002843c
and dword [ebp - 0xf4], 0
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x2c], eax
jge 0x10028450
mov dword [ebp - 0x98], 1
jmp 0x10028457
and dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x58]
add eax, dword [ebp - 0x98]
je 0x10028470
xor eax, eax
inc eax
je 0x10028470
mov dword [ebp - 0x60], 1
jmp 0x10028474
and dword [ebp - 0x60], 0
cmp dword [ebp - 0x60], 0xfffffffd
ja 0x10028486
mov dword [ebp - 0x88], 1
jmp 0x1002848d
and dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x5c]
cmp dword [ebp - 0x88], eax
jl 0x100284a1
mov dword [ebp - 0x68], 1
jmp 0x100284a5
and dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x68], eax
jl 0x100284b9
mov dword [ebp - 0xa8], 1
jmp 0x100284c0
and dword [ebp - 0xa8], 0
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x100284e2
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x44], 0
jne 0x100284e2
and dword [ebp - 0x70], 0
jmp 0x100284e9
mov dword [ebp - 0x70], 1
cmp dword [ebp - 0x70], 0
jne 0x10028501
mov eax, 0xa3d
test eax, eax
jne 0x10028501
and dword [ebp - 0x90], 0
jmp 0x1002850b
mov dword [ebp - 0x90], 1
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0xbc], eax
cmp dword [ebp - 0x78], 0
jne 0x10028536
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0xb0], 0
jne 0x10028536
and dword [ebp - 0xa0], 0
jmp 0x10028540
mov dword [ebp - 0xa0], 1
mov eax, dword [ebp - 0xd4]
cmp dword [ebp - 0xa0], eax
jge 0x10028557
mov dword [ebp - 0x4c], 1
jmp 0x1002855b
and dword [ebp - 0x4c], 0
cmp dword [ebp - 0x4c], 0xffffffff
je 0x1002856a
mov dword [ebp - 0x54], 1
jmp 0x1002856e
and dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x54], eax
jle 0x10028582
mov dword [ebp - 0xe4], 1
jmp 0x10028589
and dword [ebp - 0xe4], 0
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x38], eax
jmp 0x100286b9
mov dword [ebp - 0xc8], 1
mov dword [ebp - 0xf0], 0x7ce2
mov dword [ebp - 0xe8], 1
mov eax, dword [ebp - 0x5c]
cmp dword [ebp - 0xc8], eax
jne 0x100285c6
mov dword [ebp - 0x48], 1
jmp 0x100285ca
and dword [ebp - 0x48], 0
cmp dword [ebp - 0x48], 0
jg 0x100285d9
mov dword [ebp - 0x74], 1
jmp 0x100285dd
and dword [ebp - 0x74], 0
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x2c]
test eax, eax
je 0x100285f7
cmp dword [ebp - 0x30], 0
je 0x100285f7
mov dword [ebp - 0x6c], 1
jmp 0x100285fb
and dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x6c]
cmp eax, dword [ebp - 0x10]
je 0x1002860f
mov dword [ebp - 0x7c], 1
jmp 0x10028613
and dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x74]
add eax, dword [ebp - 0x7c]
cmp eax, 0xfff6
jne 0x1002862c
mov dword [ebp - 0x84], 1
jmp 0x10028633
and dword [ebp - 0x84], 0
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
add eax, dword [ebp - 0xf0]
push 4
pop ecx
shl ecx, 0
cmp eax, dword [ebp + ecx - 0x44]
jge 0x10028663
mov dword [ebp - 0xd0], 1
jmp 0x1002866a
and dword [ebp - 0xd0], 0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x104], eax
cmp dword [ebp - 0x18], 0xffff
je 0x10028688
mov dword [ebp - 0x94], 1
jmp 0x1002868f
and dword [ebp - 0x94], 0
mov eax, dword [ebp - 0xe8]
cmp dword [ebp - 0x94], eax
jne 0x100286a9
mov dword [ebp - 0x9c], 1
jmp 0x100286b0
and dword [ebp - 0x9c], 0
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x10], eax
jmp 0x100282b1
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xfc], 0x64a6
mov byte [ebp - 0x12], 0
movzx eax, byte [ebp - 0x12]
test eax, eax
je 0x100286f9
push 0x1881
push 0xa5e
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
push 0
call dword [sym.imp.USER32.dll_GetMessageA]
mov byte [ebp - 0x11], 0
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x1002870b
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0
jmp 0x10028721
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 3
jg 0x10028742
mov eax, dword [ebp - 0x1c]
push dword [eax]
mov ecx, dword [ebp - 0xc4]
call fcn.100182ab
cmp dword [eax], 0
je 0x10028740
jmp 0x10028742
jmp 0x10028716
jmp 0x1002877f
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xb8]
movzx eax, byte [eax]
test eax, eax
je 0x1002877f
push 0
push 0x1bed
push 0
push 0x11b0
push 0x26d0
call dword [sym.imp.GDI32.dll_ExtCreatePen]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret