Function at 0x1003d670
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100437e6
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x100e3998]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x11c], ebx
mov edi, dword [ebx]
mov dword [ebp - 0x108], edi
test edi, edi
je 0x1004d9e6
lea eax, [edi + 0xc]
mov dword [ebp - 0xe4], eax
mov eax, dword [0x100e4064]
mov dword [ebp - 0xdc], 0
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xe0], 0
test eax, eax
je 0x1004d9ed
inc dword [eax + 4]
mov dword [ebp - 4], 0
cmp byte [ebx + 0x38], 0
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x100], 0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xfc], 0
jne 0x1004da41
cmp dword [edi + 0x220], 0
je 0x1004da4d
test byte [edi + 0x78], 3
jne 0x1004dad1
lea eax, [ebp - 0x118]
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xd0], eax
lea ecx, [ebp - 0x110]
mov eax, dword [0x10008380]
mov dword [ebp - 0xc8], eax
mov eax, dword [0x10008384]
mov dword [ebp - 0xc4], eax
mov eax, dword [0x10008388]
mov dword [ebp - 0xc0], eax
mov eax, dword [0x1000838c]
push ecx
mov dword [ebp - 0xbc], eax
lea ecx, [ebp - 0x100]
mov eax, dword [edi + 0x228]
push ecx
mov dword [ebp - 0x118], 0xb
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xcc], 1
mov esi, dword [eax]
push ecx
push 1
push eax
mov esi, dword [esi + 0xc]
mov ecx, esi
call dword [0x100e52dc]
call esi
mov esi, eax
test esi, esi
js 0x1004df6e
jne 0x1004dfd2
mov eax, dword [ebp - 0x110]
mov eax, dword [eax]
cmp word [eax + 0x24], 0
jne 0x1004e05f
mov al, 1
mov byte [edi + 0xc8], al
mov eax, dword [edi + 0x220]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x100e52dc]
call esi
mov esi, eax
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0xe0], esi
call fcn.10038c50
test eax, eax
je 0x1004e0c7
cmp dword [ebp - 0xe0], 0
je 0x1004e0c7
test esi, esi
jns 0x1004e0c7
test byte [0x100e4068], 2
jne 0x1004e06c
mov esi, dword [ebp - 0xe0]
test esi, esi
jns 0x1003d870
test byte [0x100e4068], 2
jne 0x1004e296
mov dword [edi + 0x118], 1
lea eax, [edi + 0x290]
xor ecx, ecx
xchg dword [eax], ecx
test ecx, ecx
jne 0x1004e2f2
cmp dword [ebp - 0xe0], 0
jge 0x1004e4b0
lea esi, [ebx + 8]
lea ebx, [edi + 0x98]
mov dword [ebp - 0xd8], esi
cmp esi, ebx
je 0x1003d9eb
mov eax, dword [esi]
test eax, eax
jne 0x1004e307
mov eax, dword [esi + 8]
lea edx, [esi + 8]
test eax, eax
jne 0x1004e314
mov eax, dword [esi + 0x10]
lea edx, [esi + 0x10]
test eax, eax
jne 0x1004e32a
mov edx, dword [esi + 0x18]
lea eax, [esi + 0x18]
mov dword [ebp - 0xd4], edx
test edx, edx
je 0x1003d97f
lea ecx, [ebx + 0x18]
cmp eax, ecx
je 0x1003d97f
mov esi, edx
lea edx, [esi + 2]
lea ebx, [ebx]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1003d900
sub esi, edx
sar esi, 1
test byte [ecx + 4], 2
je 0x1003d92b
mov eax, dword [ecx]
test eax, eax
je 0x1003d92b
push eax
push dword [0x100e4034]
call dword [sym.imp.MSDART.DLL_MpHeapFree]
add esp, 8
cmp esi, 0x7ffffffd
ja 0x1004e340
add esi, esi
lea eax, [esi + 2]
push eax
push 0xa00000
push dword [0x100e4034]
call dword [sym.imp.MSDART.DLL_MpHeapAlloc]
add esp, 0xc
mov dword [ebx + 0x18], eax
test eax, eax
je 0x1004e349
push esi
push dword [ebp - 0xd4]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebx + 0x18]
xor ecx, ecx
add esp, 0xc
mov word [esi + eax], cx
or byte [ebx + 0x1c], 4
mov esi, dword [ebp - 0xd8]
lea eax, [esi + 0x20]
lea ecx, [ebx + 0x20]
cmp eax, ecx
je 0x1003d9d0
mov eax, dword [eax]
mov dword [ebp - 0xd8], eax
test eax, eax
jne 0x1004e352
xor edx, edx
test byte [ecx + 4], 2
mov dword [ebp - 0xd4], edx
je 0x1003d9c6
mov edx, dword [ecx]
test edx, edx
je 0x1003d9c6
push edx
push dword [0x100e4034]
call dword [sym.imp.MSDART.DLL_MpHeapFree]
mov eax, dword [ebp - 0xd8]
lea ecx, [ebx + 0x20]
add esp, 8
test eax, eax
jne 0x1004e37b
mov dword [ecx], eax
mov eax, dword [esi + 0x28]
mov dword [ebx + 0x28], eax
movzx eax, byte [esi + 0x2c]
mov byte [ebx + 0x2c], al
movzx eax, byte [esi + 0x2d]
mov byte [ebx + 0x2d], al
movzx eax, byte [esi + 0x2f]
mov byte [ebx + 0x2f], al
test byte [ebx + 4], 4
je 0x1004e3fa
test byte [ebx + 0xc], 4
je 0x1004e3fa
test byte [ebx + 0x14], 4
je 0x1004e3fa
test byte [ebx + 0x1c], 4
je 0x1004e3fa
test byte [ebx + 0x24], 4
je 0x1004e3fa
mov ecx, dword [edi + 0x224]
test ecx, ecx
jne 0x1004e414
mov ecx, dword [edi + 0x220]
test ecx, ecx
je 0x1003da4f
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x100e52dc]
call esi
mov dword [edi + 0x220], 0
mov ecx, dword [edi + 0x228]
test ecx, ecx
je 0x1003da73
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x100e52dc]
call esi
mov dword [edi + 0x228], 0
mov ecx, dword [edi + 0x230]
test ecx, ecx
jne 0x1004e433
mov ecx, dword [edi + 0x90]
test ecx, ecx
jne 0x1004e452
mov ecx, dword [edi + 0x94]
test ecx, ecx
jne 0x1004e471
mov eax, dword [ebp - 0x11c]
mov byte [edi + 0xc4], 0
cmp byte [eax + 0x38], 0
jne 0x1004e490
mov eax, dword [edi]
mov byte [edi + 0x249], 0
push edi
mov esi, dword [eax + 4]
cmp esi, fcn.10039340
jne 0x1004e4bf
call fcn.10039340
cmp dword [edi + 0x24], 0
jne 0x1003dafe
mov eax, dword [edi + 0x8c]
xor ebx, ebx
mov esi, dword [eax + 8]
test esi, esi
jg 0x1004e4ce
mov eax, dword [edi + 0x88]
xor ebx, ebx
mov esi, dword [eax + 8]
test esi, esi
jg 0x1004e4f8
mov eax, dword [edi]
push edi
mov esi, dword [eax + 8]
cmp esi, fcn.10039400
jne 0x1004e5f5
call fcn.10039400
mov edx, dword [ebp - 0x10c]
test edx, edx
jne 0x1004e604
mov esi, dword [ebp - 0x110]
test esi, esi
je 0x1003db66
mov eax, dword [esi + 4]
test eax, eax
je 0x1003db5f
xor edi, edi
test eax, eax
je 0x1003db57
xor ebx, ebx
lea esp, [esp]
mov eax, dword [esi]
add eax, 0x24
add eax, ebx
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
inc edi
add ebx, 0x34
cmp edi, dword [esi + 4]
jb 0x1003db40
push dword [esi]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov edi, dword [ebp - 0xe0]
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0xf8]
add dword [eax + 4], 0xffffffff
je 0x1004e618
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10040f40
mov esp, ebp
pop ebp
ret
xor eax, eax
jmp 0x1003d6bb
lea eax, [ebp - 0xf8]
mov dword [ebp - 0xf4], 1
push eax
mov eax, dword [0x100e4064]
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xec], 0
mov word [ebp - 0xe8], 0
mov byte [ebp - 0xe6], 0
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [ebp - 0xf8]
mov dword [ebp - 0xf8], eax
jmp 0x1003d6f4
mov byte [ebp - 0xe7], 1
jmp 0x1003d741
push 0
lea ecx, [ebp - 0xf8]
call fcn.1005a924
mov esi, dword [ebp - 0xe0]
test esi, esi
jns 0x1003d859
test byte [0x100e4068], 2
je 0x1003d859
lea ecx, [edi + 0x80]
call fcn.10050714
push 0x6b0
push esi
cmp eax, 0xffffffff
je 0x1004dab4
lea ecx, [edi + 0x80]
call fcn.10050714
push eax
mov eax, dword [0x100e70f0]
push 0x1000bf90
push 0x1ac009
push eax
call fcn.100d931d
add esp, 0x18
jmp 0x1003d859
mov eax, dword [0x100e70f0]
push 0x1000c000
push 0x1ac009
push eax
call fcn.100d931d
add esp, 0x14
jmp 0x1003d859
cmp dword [edi + 0x74], 0
jne 0x1004db54
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0xe0], 0x800a0e84
call fcn.10038c50
test byte [0x100e4068], 2
je 0x1003d859
lea ecx, [edi + 0x80]
call fcn.10050714
push 0x6bc
cmp eax, 0xffffffff
je 0x1004db37
lea ecx, [edi + 0x80]
call fcn.10050714
push eax
mov eax, dword [0x100e70f0]
push 0x1000c068
push 0x1af009
push eax
call fcn.100d931d
add esp, 0x14
jmp 0x1003d859
mov eax, dword [0x100e70f0]
push 0x1000c0b8
push 0x1af009
push eax
call fcn.100d931d
add esp, 0x10
jmp 0x1003d859
mov esi, dword [edi + 0x64]
lea eax, [edi + 0x64]
lea ecx, [ebp - 0xfc]
push ecx
push 0x10008490
mov esi, dword [esi + 0x10]
mov ecx, esi
push eax
call dword [0x100e52dc]
call esi
mov ecx, dword [edi + 0x74]
lea eax, [ebp - 0xd8]
push eax
call fcn.100db229
add esp, 4
mov dword [ebp - 0xe0], eax
test eax, eax
jns 0x1004dc03
lea ecx, [ebp - 0xf8]
call fcn.10038c50
test byte [0x100e4068], 2
je 0x1003d859
lea ecx, [edi + 0x80]
call fcn.10050714
push 0x6c2
cmp eax, 0xffffffff
je 0x1004dbe6
lea ecx, [edi + 0x80]
call fcn.10050714
push eax
mov eax, dword [0x100e70f0]
push 0x1000c068
push 0x1b0809
push eax
call fcn.100d931d
add esp, 0x14
jmp 0x1003d859
mov eax, dword [0x100e70f0]
push 0x1000c0b8
push 0x1b0809
push eax
call fcn.100d931d
add esp, 0x10
jmp 0x1003d859
lea eax, [ebp - 0x10c]
mov ecx, edi
push eax
lea eax, [ebp - 0x100]
push eax
push 7
push 0x10008380
call fcn.1004ff1b
mov esi, eax
test esi, esi
jns 0x1004dc84
test byte [0x100e4068], 2
je 0x1004dc82
lea ecx, [edi + 0x80]
call fcn.10050714
push 0x6c7
push esi
cmp eax, 0xffffffff
je 0x1004dc6a
lea ecx, [edi + 0x80]
call fcn.10050714
push eax
mov eax, dword [0x100e70f0]
push 0x1000bf90
push 0x1b1c09
push eax
call fcn.100d931d
add esp, 0x18
jmp 0x1004dc82
mov eax, dword [0x100e70f0]
push 0x1000c000
push 0x1b1c09
push eax
call fcn.100d931d
add esp, 0x14
test esi, esi
je 0x1004de35
cmp esi, 0x80040e21
je 0x1004dd0f
mov dword [ebp - 0xe0], esi
test esi, esi
jns 0x1004dd0f
lea ecx, [ebp - 0xf8]
call fcn.10038c50
test byte [0x100e4068], 2
je 0x1003d859
lea ecx, [edi + 0x80]
call fcn.10050714
push 0x6cc
cmp eax, 0xffffffff
je 0x1004dcf2
lea ecx, [edi + 0x80]
call fcn.10050714
push eax
mov eax, dword [0x100e70f0]
push 0x1000c068
push 0x1b3009
push eax
call fcn.100d931d
add esp, 0x14
jmp 0x1003d859
mov eax, dword [0x100e70f0]
push 0x1000c0b8
push 0x1b3009
push eax
call fcn.100d931d
add esp, 0x10
jmp 0x1003d859
mov eax, dword [ebp - 0xd8]
cmp eax, 0x20000
jne 0x1004ddb0
mov ecx, dword [ebp - 0xfc]
call fcn.100d94c2
test eax, eax
je 0x1003d758
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0xe0], 0x800a0e84
call fcn.10038c50
test byte [0x100e4068], 2
je 0x1003d859
lea ecx, [edi + 0x80]
call fcn.10050714
push 0x6e9
cmp eax, 0xffffffff
je 0x1004dd93
lea ecx, [edi + 0x80]
call fcn.10050714
push eax
mov eax, dword [0x100e70f0]
push 0x1000c068
push 0x1ba409
push eax
call fcn.100d931d
add esp, 0x14
jmp 0x1003d859
mov eax, dword [0x100e70f0]
push 0x1000c0b8
push 0x1ba409
push eax
call fcn.100d931d
add esp, 0x10
jmp 0x1003d859
test eax, eax
je 0x1003d758
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0xe0], 0x800a0e84
call fcn.10038c50
test byte [0x100e4068], 2
je 0x1003d859
lea ecx, [edi + 0x80]
call fcn.10050714
push 0x6ed
cmp eax, 0xffffffff
je 0x1004de18
lea ecx, [edi + 0x80]
call fcn.10050714
push eax
mov eax, dword [0x100e70f0]
push 0x1000c068
push 0x1bb409
push eax
call fcn.100d931d
add esp, 0x14
jmp 0x1003d859
mov eax, dword [0x100e70f0]
push 0x1000c0b8
push 0x1bb409
push eax
call fcn.100d931d
add esp, 0x10
jmp 0x1003d859
mov eax, dword [ebp - 0x10c]
mov eax, dword [eax]
cmp word [eax + 0x24], 0
je 0x1003d758
mov eax, dword [ebp - 0xd8]
cmp eax, 0x20000
jne 0x1004dee9
mov ecx, dword [ebp - 0xfc]
call fcn.100d94c2
test eax, eax
je 0x1003d758
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0xe0], 0x800a0e84
call fcn.10038c50
test byte [0x100e4068], 2
je 0x1003d859
lea ecx, [edi + 0x80]
call fcn.10050714
push 0x6db
cmp eax, 0xffffffff
je 0x1004decc
lea ecx, [edi + 0x80]
call fcn.10050714
push eax
mov eax, dword [0x100e70f0]
push 0x1000c068
push 0x1b6c09
push eax
call fcn.100d931d
add esp, 0x14
jmp 0x1003d859
mov eax, dword [0x100e70f0]
push 0x1000c0b8
push 0x1b6c09
push eax
call fcn.100d931d
add esp, 0x10
jmp 0x1003d859
test eax, eax
je 0x1003d758
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0xe0], 0x800a0e84
call fcn.10038c50
test byte [0x100e4068], 2
je 0x1003d859
lea ecx, [edi + 0x80]
call fcn.10050714
push 0x6df
cmp eax, 0xffffffff
je 0x1004df51
lea ecx, [edi + 0x80]
call fcn.10050714
push eax
mov eax, dword [0x100e70f0]
push 0x1000c068
push 0x1b7c09
push eax
call fcn.100d931d
add esp, 0x14
jmp 0x1003d859
mov eax, dword [0x100e70f0]
push 0x1000c0b8
push 0x1b7c09
push eax
call fcn.100d931d
add esp, 0x10
jmp 0x1003d859
test byte [0x100e4068], 2
je 0x1004dfcb
lea ecx, [edi + 0x80]
call fcn.10050714
push 0x6f4
push esi
cmp eax, 0xffffffff
je 0x1004dfb3
lea ecx, [edi + 0x80]
call fcn.10050714
push eax
mov eax, dword [0x100e70f0]
push 0x1000bf90
push 0x1bd009
push eax
call fcn.100d931d
add esp, 0x18
jmp 0x1004dfcb
mov eax, dword [0x100e70f0]
push 0x1000c000
push 0x1bd009
push eax
call fcn.100d931d
add esp, 0x14
test esi, esi
jmp 0x1003d7e5
cmp esi, 0x80040e21
je 0x1003d7fe
mov dword [ebp - 0xe0], esi
test esi, esi
jns 0x1003d7fe
lea ecx, [ebp - 0xf8]
call fcn.10038c50
test byte [0x100e4068], 2
je 0x1003d859
lea ecx, [edi + 0x80]
call fcn.10050714
push 0x6f8
cmp eax, 0xffffffff
je 0x1004e042
lea ecx, [edi + 0x80]
call fcn.10050714
push eax
mov eax, dword [0x100e70f0]
push 0x1000c068
push 0x1be009
push eax
call fcn.100d931d
add esp, 0x14
jmp 0x1003d859
mov eax, dword [0x100e70f0]
push 0x1000c0b8
push 0x1be009
push eax
call fcn.100d931d
add esp, 0x10
jmp 0x1003d859
cmp word [eax + 0x2c], 0
sete al
jmp 0x1003d800
lea ecx, [edi + 0x80]
call fcn.10050714
push 0x714
cmp eax, 0xffffffff
je 0x1004e0aa
lea ecx, [edi + 0x80]
call fcn.10050714
push eax
mov eax, dword [0x100e70f0]
push 0x1000c068
push 0x1c5009
push eax
call fcn.100d931d
add esp, 0x14
jmp 0x1003d859
mov eax, dword [0x100e70f0]
push 0x1000c0b8
push 0x1c5009
push eax
call fcn.100d931d
add esp, 0x10
jmp 0x1003d859
mov eax, dword [edi + 0x220]
lea ecx, [ebp - 0x104]
push ecx
push 0x1003819c
push eax
mov esi, dword [eax]
mov esi, dword [esi]
mov ecx, esi
call dword [0x100e52dc]
call esi
mov dword [ebp - 0xe0], eax
test eax, eax
jns 0x1004e165
lea ecx, [ebp - 0xf8]
call fcn.10038c50
test byte [0x100e4068], 2
je 0x1003d859
lea ecx, [edi + 0x80]
call fcn.10050714
push 0x71a
cmp eax, 0xffffffff
je 0x1004e148
lea ecx, [edi + 0x80]
call fcn.10050714
push eax
mov eax, dword [0x100e70f0]
push 0x1000c068
push 0x1c6809
push eax
call fcn.100d931d
add esp, 0x14
jmp 0x1003d859
mov eax, dword [0x100e70f0]
push 0x1000c0b8
push 0x1c6809
push eax
call fcn.100d931d
add esp, 0x10
jmp 0x1003d859
mov eax, dword [ebp - 0x104]
lea ecx, [edi + 0x224]
push ecx
push 0x10008490
push 0
mov esi, dword [eax]
push eax
mov esi, dword [esi + 0xc]
mov ecx, esi
call dword [0x100e52dc]
call esi
lea edx, [ebp - 0xd4]
mov dword [ebp - 0xd4], eax
lea ecx, [ebp - 0xf8]
call fcn.1005120f
test eax, eax
je 0x1004e200
test byte [0x100e4068], 2
je 0x1004e200
lea ecx, [edi + 0x80]
call fcn.10050714
push 0x71c
cmp eax, 0xffffffff
je 0x1004e1e8
lea ecx, [edi + 0x80]
call fcn.10050714
push eax
mov eax, dword [0x100e70f0]
push 0x1000c068
push 0x1c7009
push eax
call fcn.100d931d
add esp, 0x14
jmp 0x1004e200
mov eax, dword [0x100e70f0]
push 0x1000c0b8
push 0x1c7009
push eax
call fcn.100d931d
add esp, 0x10
mov eax, dword [ebp - 0x104]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x100e52dc]
call esi
mov ecx, dword [edi + 0x224]
test ecx, ecx
je 0x1004e27d
mov esi, dword [ecx]
lea eax, [edi + 0x230]
push eax
push 0x1003818c
push ecx
mov esi, dword [esi]
mov ecx, esi
call dword [0x100e52dc]
call esi
mov ecx, dword [edi + 0x224]
lea eax, [edi + 0x90]
push eax
push 0x1003817c
push ecx
mov esi, dword [ecx]
mov esi, dword [esi]
mov ecx, esi
call dword [0x100e52dc]
call esi
mov ecx, dword [edi + 0x224]
lea eax, [edi + 0x94]
push eax
push 0x1003816c
push ecx
mov esi, dword [ecx]
mov esi, dword [esi]
mov ecx, esi
call dword [0x100e52dc]
call esi
cmp dword [ebp - 0xe0], 0
jl 0x1003d859
mov byte [edi + 0xc6], 1
jmp 0x1003d859
lea ecx, [edi + 0x80]
call fcn.10050714
push 0x731
push esi
cmp eax, 0xffffffff
je 0x1004e2d5
lea ecx, [edi + 0x80]
call fcn.10050714
push eax
mov eax, dword [0x100e70f0]
push 0x1000bf90
push 0x1cc409
push eax
call fcn.100d931d
add esp, 0x18
jmp 0x1003d870
mov eax, dword [0x100e70f0]
push 0x1000c000
push 0x1cc409
push eax
call fcn.100d931d
add esp, 0x14
jmp 0x1003d870
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x100e52dc]
call esi
jmp 0x1003d88c
push eax
mov ecx, ebx
call fcn.10050958
jmp 0x1003d8ba
lea ecx, [ebx + 8]
cmp edx, ecx
je 0x1003d8c8
push eax
call fcn.10050958
jmp 0x1003d8c8
lea ecx, [ebx + 0x10]
cmp edx, ecx
je 0x1003d8d6
push eax
call fcn.10050958
jmp 0x1003d8d6
xor eax, eax
add esi, esi
jmp 0x1003d951
and byte [ebx + 0x1c], 0xfb
jmp 0x1003d979
mov edx, eax
lea eax, [edx + 2]
mov dword [ebp - 0xd4], eax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1004e35d
sub edx, dword [ebp - 0xd4]
mov eax, dword [ebp - 0xd8]
sar edx, 1
jmp 0x1003d99b
mov edx, dword [ebp - 0xd4]
lea edi, [edx + edx]
mov dword [ebp - 0xd4], edi
cmp edx, 0x7ffffffd
ja 0x1004e3bb
lea eax, [edx*2 + 2]
push eax
push 0xa00000
push dword [0x100e4034]
call dword [sym.imp.MSDART.DLL_MpHeapAlloc]
mov edx, eax
lea ecx, [ebx + 0x20]
mov eax, dword [ebp - 0xd8]
add esp, 0xc
jmp 0x1004e3bd
xor edx, edx
mov edi, dword [ebp - 0x108]
mov dword [ecx], edx
test edx, edx
jne 0x1004e3d2
and byte [ecx + 4], 0xfb
jmp 0x1003d9d0
push dword [ebp - 0xd4]
push eax
push edx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebx + 0x20]
xor edx, edx
mov ecx, dword [ebp - 0xd4]
add esp, 0xc
mov word [ecx + eax], dx
or byte [ebx + 0x24], 4
jmp 0x1003d9d0
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0xe0], 0x8007000e
call fcn.10038c50
jmp 0x1003da1d
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x100e52dc]
call esi
mov dword [edi + 0x224], 0
jmp 0x1003da2b
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x100e52dc]
call esi
mov dword [edi + 0x230], 0
jmp 0x1003da81
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x100e52dc]
call esi
mov dword [edi + 0x90], 0
jmp 0x1003da8f
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x100e52dc]
call esi
mov dword [edi + 0x94], 0
jmp 0x1003da9d
lea eax, [edi + 0x290]
push eax
push 0
call dword [sym.imp.OLEAUT32.dll_SetErrorInfo]
mov eax, dword [ebp - 0xe0]
mov dword [edi + 0x294], eax
jmp 0x1003dab4
mov dword [edi + 0x294], 0
jmp 0x1003dab4
mov ecx, esi
call dword [0x100e52dc]
call esi
jmp 0x1003dad2
lea ecx, [eax + 4]
xor edi, edi
push ebx
call fcn.1005b044
test eax, eax
je 0x1004e4e4
cmp dword [eax + 8], 0
je 0x1004e4e4
inc edi
inc ebx
cmp ebx, esi
jl 0x1004e4d3
test edi, edi
mov edi, dword [ebp - 0x108]
jne 0x1004e521
jmp 0x1003daeb
lea ecx, [eax + 4]
xor edi, edi
push ebx
call fcn.1005b044
test eax, eax
je 0x1004e50e
cmp dword [eax + 8], 0
je 0x1004e50e
inc edi
inc ebx
cmp ebx, esi
jl 0x1004e4fd
test edi, edi
mov edi, dword [ebp - 0x108]
je 0x1003dafe
push dword [edi + 0x290]
lea ecx, [ebp - 0xb8]
push 7
push edi
call fcn.1005481a
mov byte [ebp - 4], 1
xor eax, eax
mov ecx, dword [ebp - 0xe0]
test ecx, ecx
push 2
sets al
mov dword [ebp - 0x120], 0
inc eax
mov dword [ebp - 0x124], 0
push ecx
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x114], eax
call fcn.100dbf54
mov esi, dword [edi + 0x88]
mov eax, 0x4003
mov word [ebp - 0xa8], ax
mov ecx, esi
lea eax, [ebp - 0x114]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x24], eax
call fcn.1005145f
test eax, eax
je 0x1004e5b4
lea eax, [ebp - 0xb8]
mov ecx, esi
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.1005ad2e
test eax, eax
js 0x1004e5e1
mov esi, dword [edi + 0x8c]
mov ecx, esi
call fcn.1005145f
test eax, eax
je 0x1004e5e1
lea eax, [ebp - 0xb8]
mov dword [ebp - 0x1c], 1
push eax
lea eax, [ebp - 0x124]
mov ecx, esi
push eax
call fcn.1005ad2e
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0
call fcn.10054b8d
jmp 0x1003dafe
mov ecx, esi
call dword [0x100e52dc]
call esi
jmp 0x1003db15
push 1
mov ecx, 1
call fcn.1007205f
add esp, 4
jmp 0x1003db23
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1004e64d
push ecx
push 0
call dword [sym.imp.OLEAUT32.dll_CreateErrorInfo]
mov eax, dword [ebp - 0xf8]
mov eax, dword [eax + 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x100e52dc]
call esi
mov eax, dword [ebp - 0xf8]
cmp byte [eax + 0x12], 0
jne 0x1004e669
mov ecx, dword [0x100e4064]
push 0
push dword [ecx + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x1003db83
mov dword [eax + 8], 0
mov eax, dword [ebp - 0xf8]
mov dword [eax + 0xc], 0
jmp 0x1003db83