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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10085e23
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xfc
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1005283f
mov eax, dword [ebp + 8]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc4], eax
push 2
lea ecx, [ebp - 0xd8]
call fcn.10018221
and dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
jmp 0x100522c3
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 2
jge 0x100522df
push dword [ebp - 0x20]
lea ecx, [ebp - 0xd8]
call fcn.100182ab
mov dword [eax], 0xfffffffd
jmp 0x100522bc
push 0
lea ecx, [ebp - 0xd8]
call fcn.100182ab
mov dword [eax], 0x1c
jmp 0x1005230f
push 0
lea ecx, [ebp - 0xd8]
call fcn.100182ab
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x5c]
mov dword [ecx], eax
push 0
lea ecx, [ebp - 0xd8]
call fcn.100182ab
cmp dword [eax], 0xffffffe7
jg 0x1005233a
mov byte [ebp - 0x13], 0
movzx eax, byte [ebp - 0x13]
test eax, eax
je 0x10052338
push 0x19ff
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
jmp 0x100522f4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd8]
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 - 0xf0], 7
mov dword [ebp - 0x78], 0xffffffff
mov dword [ebp - 0x24], 0
jmp 0x1005238b
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 3
jge 0x1005239e
mov eax, dword [ebp - 0x24]
mov dword [ebp + eax*4 - 0x44], 0xe1757117
jmp 0x10052384
push 4
pop eax
shl eax, 1
mov dword [ebp + eax - 0x44], 0xffffffe7
jmp 0x100523c0
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 0x100527ba
mov dword [ebp - 0x10], 0xfffffff7
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x2c], 0xc37fc054
mov dword [ebp - 0xdc], 1
mov dword [ebp - 0x48], 0xfffffffb
mov dword [ebp - 0x28], 0
jmp 0x10052406
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 2
jge 0x1005241c
mov eax, dword [ebp - 0x28]
mov dword [ebp + eax*4 - 0xb0], 0xffffffff
jmp 0x100523ff
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 0x1005243d
mov dword [ebp - 0xe4], 1
jmp 0x10052444
and dword [ebp - 0xe4], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x44]
mov dword [ebp - 0xf8], eax
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x44]
cmp dword [ebp - 0x10], eax
jl 0x1005246c
mov dword [ebp - 0x58], 1
jmp 0x10052470
and dword [ebp - 0x58], 0
cmp dword [ebp - 0x58], 0x91208373
ja 0x10052482
mov dword [ebp - 0x50], 1
jmp 0x10052486
and dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x100], eax
cmp dword [ebp - 0x10], 0x9a2b
jl 0x100524aa
mov dword [ebp - 0x9c], 1
jmp 0x100524b1
and dword [ebp - 0x9c], 0
mov eax, dword [ebp - 0x9c]
sub eax, dword [ebp - 0x10]
je 0x10052699
mov dword [ebp - 0x108], 0xfffffff7
mov dword [ebp - 0x38], 9
mov dword [ebp - 0x104], 0xa7bc6c89
mov dword [ebp - 0xc0], 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 0x10052514
mov dword [ebp - 0xa4], 1
jmp 0x1005251b
and dword [ebp - 0xa4], 0
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0xb0], 0xffffffff
jg 0x10052537
mov dword [ebp - 0xec], 1
jmp 0x1005253e
and dword [ebp - 0xec], 0
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x2c], eax
jge 0x10052552
mov dword [ebp - 0x98], 1
jmp 0x10052559
and dword [ebp - 0x98], 0
mov eax, dword [ebp - 0xa4]
add eax, dword [ebp - 0x98]
je 0x10052575
xor eax, eax
inc eax
je 0x10052575
mov dword [ebp - 0x60], 1
jmp 0x10052579
and dword [ebp - 0x60], 0
cmp dword [ebp - 0x60], 0xfffffffd
ja 0x1005258b
mov dword [ebp - 0x88], 1
jmp 0x10052592
and dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x88], eax
jl 0x100525a6
mov dword [ebp - 0x68], 1
jmp 0x100525aa
and dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x68], eax
jl 0x100525be
mov dword [ebp - 0xa8], 1
jmp 0x100525c5
and dword [ebp - 0xa8], 0
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x100525e7
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x44], 0
jne 0x100525e7
and dword [ebp - 0x70], 0
jmp 0x100525ee
mov dword [ebp - 0x70], 1
cmp dword [ebp - 0x70], 0
jne 0x10052606
mov eax, 0xa3d
test eax, eax
jne 0x10052606
and dword [ebp - 0x90], 0
jmp 0x10052610
mov dword [ebp - 0x90], 1
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0x78], 0
jne 0x1005263b
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0xb0], 0
jne 0x1005263b
and dword [ebp - 0xa0], 0
jmp 0x10052645
mov dword [ebp - 0xa0], 1
mov eax, dword [ebp - 0xc0]
cmp dword [ebp - 0xa0], eax
jge 0x1005265c
mov dword [ebp - 0x80], 1
jmp 0x10052660
and dword [ebp - 0x80], 0
cmp dword [ebp - 0x80], 0xffffffff
je 0x1005266f
mov dword [ebp - 0x54], 1
jmp 0x10052673
and dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x54], eax
jle 0x10052687
mov dword [ebp - 0xe8], 1
jmp 0x1005268e
and dword [ebp - 0xe8], 0
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x38], eax
jmp 0x100527b5
mov dword [ebp - 0xc8], 1
mov dword [ebp - 0xe0], 0x7ce2
mov dword [ebp - 0xbc], 1
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0xc8], eax
jne 0x100526cb
mov dword [ebp - 0x64], 1
jmp 0x100526cf
and dword [ebp - 0x64], 0
cmp dword [ebp - 0x64], 0
jg 0x100526de
mov dword [ebp - 0x74], 1
jmp 0x100526e2
and dword [ebp - 0x74], 0
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x2c]
test eax, eax
je 0x100526fc
cmp dword [ebp - 0x30], 0
je 0x100526fc
mov dword [ebp - 0x6c], 1
jmp 0x10052700
and dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x6c]
cmp eax, dword [ebp - 0x10]
je 0x10052714
mov dword [ebp - 0x7c], 1
jmp 0x10052718
and dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x74]
add eax, dword [ebp - 0x7c]
cmp eax, 0xfff6
jne 0x10052731
mov dword [ebp - 0x84], 1
jmp 0x10052738
and dword [ebp - 0x84], 0
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
add eax, dword [ebp - 0xe0]
push 4
pop ecx
shl ecx, 0
cmp eax, dword [ebp + ecx - 0x44]
jge 0x10052768
mov dword [ebp - 0xb8], 1
jmp 0x1005276f
and dword [ebp - 0xb8], 0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xfc], eax
cmp dword [ebp - 0x18], 0xffff
je 0x1005278d
mov dword [ebp - 0x94], 1
jmp 0x10052794
and dword [ebp - 0x94], 0
mov eax, dword [ebp - 0xbc]
cmp dword [ebp - 0x94], eax
jne 0x100527ab
mov dword [ebp - 0x4c], 1
jmp 0x100527af
and dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x10], eax
jmp 0x100523ad
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xf4], 0x64a6
mov byte [ebp - 0x12], 0
movzx eax, byte [ebp - 0x12]
test eax, eax
je 0x100527f5
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 0x10052807
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0
jmp 0x1005281d
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], 2
jge 0x1005283d
mov eax, dword [ebp - 0x1c]
push dword [eax]
mov ecx, dword [ebp - 0xcc]
call fcn.100182ab
mov dword [eax], 0xf3a4b440
jmp 0x10052812
jmp 0x10052847
push 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret