Function at 0x100309f1
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005a166
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x154
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10031392
lea eax, [ebp + 0xc]
mov dword [ebp - 0xe0], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0xb4], eax
lea eax, [ebp + 0x24]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xe0]
movzx eax, byte [eax]
test eax, eax
je 0x10030aa5
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0xec]
movzx eax, byte [eax]
test eax, eax
je 0x10030aa0
push 0
push 1
push 0x6431
push 0x5e7e
call fcn.1002c535
add esp, 0x10
jmp 0x10031390
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xdc], eax
lea ecx, [ebp - 0x154]
call fcn.1000146a
and dword [ebp - 4], 0
mov dword [ebp - 0x8c], 0x134f
mov dword [ebp - 0xa0], str.monvcnl_lrgacs_zkvijdgxfEsyAaxkivl_wmzitfqu_yjg_jemyqq_kuq_xtjfeh_dgdvedl_welnnuxz_pfwkgbsex_bjag_ymqyuyv
cmp dword [ebp - 0x8c], 0x14ca
jle 0x10030b69
push 0
push 0x2569
call dword [sym.imp.USER32.dll_MapDialogRect]
and dword [ebp - 0x38], 0
jmp 0x10030b15
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0x6ff4
jge 0x10030b61
and dword [ebp - 0x48], 0
jmp 0x10030b2b
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0x7bea
jge 0x10030b5f
mov eax, dword [ebp - 0x38]
xor eax, dword [ebp - 0x48]
cdq
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xf4], edx
push dword [ebp - 0xf4]
push dword [ebp - 0xf8]
mov ecx, 0x10074f78
call fcn.10009792
jmp 0x10030b24
jmp 0x10030b0e
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x114], 0xe48d327c
mov byte [ebp - 4], 1
cmp dword [ebp - 0x8c], 0x1296
jge 0x10030b93
mov edx, dword [ebp - 0xa0]
mov ecx, 0x10074f78
call fcn.1000cd04
jmp 0x10030baf
and dword [ebp - 4], 0
jmp 0x10030bb9
push 1
push 0
push 0x1bba
call fcn.10029827
add esp, 0xc
push 0
push 0x3195
push 0xb4d
push 1
push 0x6fc0
push 1
call fcn.1002a719
add esp, 0x18
push 0x7460
push 1
push dword [ebp - 0x60]
push 0x19c3
lea eax, [ebp - 0x154]
push eax
push 0
push 0x5124
push 0x7be8
call fcn.1002f581
add esp, 0x20
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [eax]
jae 0x1003135e
mov dword [ebp - 0x14], 0x82062403
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x70], 0xb2f67ab6
mov dword [ebp - 0x40], 0
jmp 0x10030c48
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 1
jge 0x10030c5e
mov eax, dword [ebp - 0x40]
mov dword [ebp + eax*4 - 0x12c], 0xbf0a6441
jmp 0x10030c41
mov dword [ebp - 0x14], 0
jmp 0x10030c6e
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x11
jle 0x10030c9b
mov byte [ebp - 0x1f], 0
push 0x4883
lea eax, [ebp - 0x1f]
push eax
push 1
push 1
push 0x6939
push 0x6bf2
push 0
call fcn.1002c6b6
add esp, 0x1c
jmp 0x10030c67
cmp dword [ebp - 0x14], 2
jle 0x10030caa
mov dword [ebp - 0x78], 1
jmp 0x10030cae
and dword [ebp - 0x78], 0
mov dword [ebp - 0x1c], 0xb590
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x1c]
jl 0x10030cc6
mov dword [ebp - 0x80], 1
jmp 0x10030cca
and dword [ebp - 0x80], 0
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x80]
test eax, eax
jne 0x10030cd9
cmp dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
add eax, 0x796a0b59
jne 0x10030cef
cmp dword [ebp - 0x14], 0
jne 0x10030cef
and dword [ebp - 0x68], 0
jmp 0x10030cf6
mov dword [ebp - 0x68], 1
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x68]
jne 0x10030d0a
mov dword [ebp - 0xd0], 1
jmp 0x10030d11
and dword [ebp - 0xd0], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x1c]
imul eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x14]
jne 0x10030d41
cmp dword [ebp - 0x14], 0
je 0x10030d41
mov dword [ebp - 0x90], 1
jmp 0x10030d48
and dword [ebp - 0x90], 0
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
je 0x10030d6a
push 6
pop eax
test eax, eax
je 0x10030d6a
mov dword [ebp - 0x88], 1
jmp 0x10030d71
and dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x88], eax
jl 0x10030d88
mov dword [ebp - 0x98], 1
jmp 0x10030d8f
and dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x78]
imul eax, dword [ebp - 0x98]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x10030dd4
mov dword [ebp - 0xf0], 1
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 0xf0]
push eax
push 0x31f5
push 0x29c9
push 0x5b91
push 0
call fcn.1002a9c4
add esp, 0x1c
jmp 0x10030e2e
mov dword [ebp - 0x1c], 0
jmp 0x10030de4
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x15
jg 0x10030e2e
mov dword [ebp - 0x14], 0
jmp 0x10030dfa
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jg 0x10030e2c
mov byte [ebp - 0x1e], 0
push 0x2987
push 1
push 0x80a
push 1
lea eax, [ebp - 0x1e]
push eax
push 0
push 0x6bd2
push 0x5bb1
call fcn.10033772
add esp, 0x20
jmp 0x10030df3
jmp 0x10030ddd
push 4
lea ecx, [ebp - 0x110]
call fcn.1000995a
mov byte [ebp - 4], 3
mov dword [ebp - 0x30], 1
mov dword [ebp - 0xac], 1
push 0x3e1f
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x128]
push eax
push 0x1131
push 0x2c25
push 0
push 0xf12
push 0x675e
push 1
push 0xbdc
push 0x5cf0
call fcn.1002e370
add esp, 0x2c
mov dword [ebp - 0x30], 0
jmp 0x10030e9d
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 3
jg 0x10030f1b
mov dword [ebp - 0x34], 0x1bd97a88
mov dword [ebp - 0x34], 3
jmp 0x10030eba
mov eax, dword [ebp - 0x34]
dec eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jl 0x10030f16
mov dword [ebp - 0xd8], 1
mov byte [ebp - 0x20], 0
movzx eax, byte [ebp - 0x20]
test eax, eax
je 0x10030ef1
push 0x2ef6
push 1
push 0x7aa1
push 1
push 0x41f7
call fcn.10029af7
add esp, 0x14
push 0
push 1
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0xac]
push eax
push 1
call fcn.1002debe
add esp, 0x18
jmp 0x10030eb3
jmp 0x10030e96
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x110]
call fcn.100099dd
lea eax, [ebp - 0x50]
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0x3c], 0xf6af1124
mov dword [ebp - 0x3c], 0xffffffea
jmp 0x10030f4a
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 3
jge 0x100310f2
push 4
lea ecx, [ebp - 0x138]
call fcn.1000995a
mov byte [ebp - 4], 4
mov dword [ebp - 0x44], 0xfffffff8
push 0
push 0x4d0f
push 0x371e
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.1003374d
add esp, 0x14
mov dword [ebp - 0x44], 3
jmp 0x10030f9e
mov eax, dword [ebp - 0x44]
dec eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jl 0x100310c3
push 1
lea ecx, [ebp - 0xc0]
call fcn.1000995a
mov byte [ebp - 4], 5
push 0x1b5d
push 0x490e
push 0x5b17
push 0x2e9e
push 0x75d
push 0x4cb8
push 1
push 0x5c01
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x158]
push eax
push 1
call fcn.1002a0f0
add esp, 0x2c
mov byte [ebp - 0x22], 0
movzx eax, byte [ebp - 0x22]
test eax, eax
je 0x10031013
push 0
push 1
push 0x725d
call fcn.1002a5e8
add esp, 0xc
push 0
lea ecx, [ebp - 0xc0]
call fcn.100099f9
mov dword [eax], 3
jmp 0x10031043
push 0
lea ecx, [ebp - 0xc0]
call fcn.100099f9
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 - 0xc0]
call fcn.100099f9
cmp dword [eax], 0
jl 0x100310af
mov byte [ebp - 0x1d], 0
movzx eax, byte [ebp - 0x1d]
test eax, eax
je 0x10031081
push 1
push 0x6b5
push 0x50b5
push 0x6ad0
push 0
push 0x5a03
call fcn.1002b109
add esp, 0x18
mov byte [ebp - 0x21], 0
movzx eax, byte [ebp - 0x21]
test eax, eax
je 0x100310aa
push 0x6069
push 0x7ea3
push 0
push 1
push 1
push 0x1c4f
call fcn.1002b2b1
add esp, 0x18
jmp 0x10031028
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xc0]
call fcn.100099dd
jmp 0x10030f97
push 0x5338
push 1
push 0x3ead
push 1
push 0x5f40
call fcn.1002a66a
add esp, 0x14
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x138]
call fcn.100099dd
jmp 0x10030f43
and dword [ebp - 0x4c], 0
jmp 0x10031106
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x4c], 2
jae 0x1003119e
mov dword [ebp - 0xc4], 0xa8eac8b1
push 1
push 0x6aa7
push 0x733c
push 0x2e41
push 0x22ee
push 0
push 0x50c1
call fcn.1002bb2a
add esp, 0x1c
push 1
lea eax, [ebp - 0xc4]
push eax
push 0x3294
push 1
push 0x13fc
push 1
call fcn.1002a719
add esp, 0x18
mov eax, dword [ebp - 0x64]
mov eax, dword [eax]
add eax, dword [ebp - 0x28]
xor edx, edx
div dword [0x10074480]
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 4]
movzx edx, byte [eax + edx]
mov eax, dword [ebp - 0x64]
mov eax, dword [eax]
add eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x6c]
mov ecx, dword [ecx]
movzx ecx, byte [ecx + eax]
call fcn.10015382
mov ecx, dword [ebp - 0xcc]
add ecx, dword [ebp - 0x4c]
mov byte [ecx], al
jmp 0x100310f8
push 4
lea ecx, [ebp - 0x104]
call fcn.1000995a
mov byte [ebp - 4], 6
mov dword [ebp - 0x54], 0xfffffff7
mov dword [ebp - 0x18], 1
lea eax, [ebp - 0x2c]
push eax
push 1
push 1
lea eax, [ebp - 0x104]
push eax
push 1
push 0x40d6
call fcn.10029e3a
add esp, 0x18
mov dword [ebp - 0x2c], 0
jmp 0x100311eb
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 3
jge 0x10031201
mov eax, dword [ebp - 0x2c]
mov dword [ebp + eax*4 - 0x164], 0x2fdcba86
jmp 0x100311e4
push 2
lea ecx, [ebp - 0x104]
call fcn.100099f9
and dword [eax], 0
push 2
lea ecx, [ebp - 0x104]
call fcn.100099f9
mov eax, dword [eax]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x74], eax
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x74]
mov dword [ebp + eax - 0x164], ecx
cmp dword [ebp - 0x74], 0x5fac
jne 0x1003124b
mov dword [ebp - 0x58], 1
jmp 0x1003124f
and dword [ebp - 0x58], 0
xor eax, eax
jne 0x10031265
cmp dword [ebp - 0x18], 0
jne 0x10031265
cmp dword [ebp - 0x18], 0
jne 0x10031265
and dword [ebp - 0x7c], 0
jmp 0x1003126c
mov dword [ebp - 0x7c], 1
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x7c], eax
jl 0x10031280
mov dword [ebp - 0x84], 1
jmp 0x10031287
and dword [ebp - 0x84], 0
mov eax, dword [ebp - 0x84]
sub eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x18]
jge 0x100312a1
mov dword [ebp - 0xd4], 1
jmp 0x100312a8
and dword [ebp - 0xd4], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x58]
imul eax, dword [ebp - 0x18]
cmp eax, 0x91f6
jne 0x100312d8
mov dword [ebp - 0x94], 1
jmp 0x100312df
and dword [ebp - 0x94], 0
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x94], eax
je 0x100312f3
mov eax, 0x23dd972c
test eax, eax
jne 0x10031302
cmp dword [ebp - 0x54], 0
jne 0x10031302
and dword [ebp - 0x9c], 0
jmp 0x1003130c
mov dword [ebp - 0x9c], 1
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x104]
call fcn.100099dd
lea eax, [ebp - 0x154]
push eax
push 0x22b0
push 0x5d38
push 0x7a2a
push 0x5535
lea eax, [ebp - 0x50]
push eax
push 0
push 1
push 0xccf
push 0x3100
call fcn.1002b7b9
add esp, 0x28
jmp 0x10030c15
lea eax, [ebp - 0x154]
push eax
mov ecx, dword [ebp - 0xdc]
call fcn.100098cc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x154]
call fcn.100014a2
jmp 0x100313aa
jmp 0x100313aa
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xa4], eax
push 0
push dword [ebp - 0xa4]
call fcn.10029812
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret