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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab5b7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xc0
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x40], esi
mov dword [esi], edi
jne 0x421fd0
mov dword [esi], 5
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34
mov eax, dword [ebp + 8]
push 0x4d34b8
push eax
call fcn.00471dd0
add esp, 8
cmp eax, edi
mov dword [ebp - 0x3c], eax
jne 0x422003
mov dword [esi], 2
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34
push fcn.00448cb0
push 0x420fc0
push edi
push 0x4d499c
call fcn.00430190
add esp, 0x10
cmp eax, edi
mov dword [ebp - 0x14], eax
jne 0x42203d
mov dword [esi], 0x10
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34
push eax
call fcn.0042fca0
add esp, 4
cmp eax, edi
mov dword [ebp - 0x18], eax
jne 0x422075
lea ecx, [ebp - 0x14]
push edi
push ecx
call fcn.00430570
add esp, 8
mov dword [esi], 0x10
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
push 0x4cbc40
push edx
push 0x471683
push 3
push eax
call fcn.00472ad0
add esp, 0x14
test eax, eax
je 0x4220cf
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x14]
push ecx
push edx
call fcn.00430570
mov eax, dword [ebp - 0x3c]
add esp, 8
push eax
call fcn.00471ad3
mov ecx, dword [ebp - 0x40]
add esp, 4
xor eax, eax
mov dword [ecx], 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x14]
push edx
push eax
call fcn.0042fda0
mov ecx, dword [ebp + 0x38]
mov edx, dword [ebp + 0x28]
mov eax, dword [ebp + 0x1c]
add esp, 8
push edi
push edi
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x14]
push edx
push eax
push ecx
call fcn.00430ab0
mov eax, dword [ebp + 0x24]
add esp, 0x24
cmp eax, edi
mov dword [ebp - 0x44], edi
je 0x4221bd
mov ebx, dword [ebp + 0x20]
mov dword [ebp - 4], edi
lea edx, [ebx + ebx*2]
push edx
call fcn.0048b346
add esp, 4
mov dword [ebp - 0x44], eax
jmp 0x42213a
mov edi, dword [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
test edi, edi
jne 0x422182
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x14]
push eax
push ecx
call fcn.00430570
mov edx, dword [ebp - 0x3c]
add esp, 8
push edx
call fcn.00471ad3
mov eax, dword [ebp - 0x40]
add esp, 4
mov dword [eax], 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34
test ebx, ebx
jbe 0x4221ab
mov edx, dword [ebp + 0x24]
lea ecx, [edi + 2]
mov esi, ebx
lea eax, [edx + 1]
mov dl, byte [eax + 1]
add eax, 4
mov byte [ecx - 2], dl
mov dl, byte [eax - 4]
mov byte [ecx - 1], dl
mov dl, byte [eax - 5]
mov byte [ecx], dl
add ecx, 3
dec esi
jne 0x422191
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
push ebx
push edi
push eax
push ecx
call fcn.00430d20
add esp, 0x10
lea edx, [ebp - 0x54]
push edx
call fcn.004733dc
add esp, 4
lea eax, [ebp - 0x54]
push eax
call fcn.004732d2
add esp, 4
lea ecx, [ebp - 0x98]
push eax
push ecx
call fcn.00430150
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
add esp, 8
lea edx, [ebp - 0x98]
push edx
push eax
push ecx
call fcn.00430f60
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
add esp, 0xc
add edx, 4
push edx
push eax
push ecx
call fcn.004309a0
mov eax, dword [0x4eb358]
add esp, 0xc
xor edi, edi
cmp eax, 0xffffffff
je 0x4222c9
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x4222c4
push 0xb8
call fcn.0048b346
add esp, 4
mov dword [ebp - 0x20], eax
test eax, eax
mov dword [ebp - 4], 2
je 0x42225a
mov ecx, eax
call fcn.00418520
mov ebx, eax
jmp 0x42225c
xor ebx, ebx
mov edx, dword [0x4eb358]
push ebx
push edx
mov dword [ebp - 4], 0xffffffff
mov edi, ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x422291
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push 0x4cb060
push eax
call fcn.00472a64
push 8
call fcn.0048b346
add esp, 4
mov esi, eax
push 0x4eb360
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x4eb35c]
push 0x4eb360
mov dword [esi + 4], ecx
mov dword [0x4eb35c], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x4eb358]
xor ebx, ebx
cmp eax, 0xffffffff
je 0x422373
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x422373
push 0xb8
call fcn.0048b346
add esp, 4
mov dword [ebp - 0x20], eax
test eax, eax
mov dword [ebp - 4], 3
je 0x42230b
mov ecx, eax
call fcn.00418520
mov ebx, eax
jmp 0x42230d
xor ebx, ebx
mov edx, dword [0x4eb358]
push ebx
push edx
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x422340
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push 0x4cb060
push eax
call fcn.00472a64
push 8
call fcn.0048b346
add esp, 4
mov esi, eax
push 0x4eb360
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x4eb35c]
push 0x4eb360
mov dword [esi + 4], ecx
mov dword [0x4eb35c], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, 0x4eb358
call fcn.00418750
mov edx, dword [eax + 0x1c]
mov eax, dword [edi + 0x18]
mov ecx, dword [ebx + 0x14]
push edx
mov edx, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push ecx
push edx
push eax
call fcn.00430cf0
fld qword [ebp + 0x2c]
fcomp qword [0x4b0948]
add esp, 0x14
fnstsw ax
test ah, 0x41
jne 0x4223c1
mov ecx, dword [ebp + 0x30]
mov edx, dword [ebp + 0x2c]
mov eax, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x14]
push edx
push eax
push ecx
call fcn.00430a50
add esp, 0x10
mov eax, dword [0x4eb358]
xor ebx, ebx
cmp eax, 0xffffffff
je 0x422470
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x422470
push 0xb8
call fcn.0048b346
add esp, 4
mov dword [ebp - 0x34], eax
test eax, eax
mov dword [ebp - 4], 4
je 0x422408
mov ecx, eax
call fcn.00418520
mov ebx, eax
jmp 0x42240a
xor ebx, ebx
mov edx, dword [0x4eb358]
push ebx
push edx
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x42243d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push 0x4cb060
push eax
call fcn.00472a64
push 8
call fcn.0048b346
add esp, 4
mov esi, eax
push 0x4eb360
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x4eb35c]
push 0x4eb360
mov dword [esi + 4], ecx
mov dword [0x4eb35c], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebx + 0x48]
test eax, eax
jne 0x42247e
xor esi, esi
mov dword [ebp - 0x24], esi
jmp 0x42249b
mov ecx, dword [ebx + 0x4c]
sub ecx, eax
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
xor eax, eax
mov esi, edx
mov dword [ebp - 0x24], esi
cmp esi, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
jle 0x42278b
mov ecx, esi
shl ecx, 4
push ecx
call fcn.00473198
add esp, 4
lea ebx, [esi*4]
mov edi, eax
push ebx
mov dword [ebp - 0x1c], edi
call fcn.00473198
add esp, 4
mov dword [ebp - 0x2c], eax
push ebx
call fcn.00473198
add esp, 4
mov dword [ebp - 0x30], eax
test edi, edi
jne 0x4224f4
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x3c]
push eax
mov dword [edx], 1
jmp 0x422840
test esi, esi
mov dword [ebp - 0x20], 0
jle 0x422779
mov ebx, dword [ebp - 0x2c]
add edi, 8
sub eax, ebx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], eax
mov eax, dword [0x4eb358]
xor esi, esi
cmp eax, 0xffffffff
je 0x4225c9
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x4225c9
push 0xb8
call fcn.0048b346
add esp, 4
mov dword [ebp - 0xa0], eax
test eax, eax
mov dword [ebp - 4], 5
je 0x422562
mov ecx, eax
call fcn.00418520
mov esi, eax
jmp 0x422564
xor esi, esi
mov eax, dword [0x4eb358]
push esi
push eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x422596
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x50]
push 0x4cb060
push ecx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x50], eax
call fcn.00472a64
push 8
call fcn.0048b346
add esp, 4
mov edi, eax
push 0x4eb360
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x4eb35c]
push 0x4eb360
mov dword [edi + 4], edx
mov dword [0x4eb35c], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x48]
test eax, eax
jne 0x4225d4
xor edx, edx
jmp 0x4225ea
mov ecx, dword [esi + 0x4c]
sub ecx, eax
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, dword [ebp - 0x20]
ja 0x422641
lea ecx, [ebp - 0x49]
push ecx
push str.invalid_vector_T__subscript
lea ecx, [ebp - 0xb4]
call fcn.00421e40
lea edx, [ebp - 0xb4]
lea ecx, [ebp - 0xd0]
push edx
mov dword [ebp - 4], 6
call fcn.00422df0
lea eax, [ebp - 0xd0]
push 0x4cb668
push eax
call fcn.00472a64
push 1
lea ecx, [ebp - 0xb4]
mov dword [ebp - 4], 0xffffffff
call fcn.00418c90
mov esi, dword [esi + 0x48]
mov ecx, dword [ebp - 0x28]
add esi, ecx
push 0
lea ecx, [ebp - 0x8c]
mov dl, byte [esi]
mov byte [ebp - 0x8c], dl
call fcn.00418c90
mov eax, dword [0x4b08e0]
lea ecx, [ebp - 0x8c]
push eax
push 0
push esi
call fcn.00419f90
mov cl, byte [esi + 0x10]
lea edi, [esi + 0x10]
mov byte [ebp - 0x7c], cl
push 0
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], 7
call fcn.00418c90
mov edx, dword [0x4b08e0]
lea ecx, [ebp - 0x7c]
push edx
push 0
push edi
call fcn.00419f90
mov eax, dword [esi + 0x20]
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x88]
mov dword [ebx], 0
mov dword [ecx + ebx], 0
test eax, eax
jne 0x4226c3
mov eax, 0x4b08e4
push eax
call fcn.0047316d
mov dword [ebx], eax
mov eax, dword [ebp - 0x78]
xor edi, edi
add esp, 4
cmp eax, edi
jne 0x4226dc
mov eax, 0x4b08e4
push eax
call fcn.0047316d
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x34]
add esp, 4
neg ecx
sbb ecx, ecx
mov dword [edx + ebx], eax
mov dword [esi - 4], eax
mov eax, dword [ebx]
neg ecx
dec ecx
mov dword [esi], eax
mov dword [esi - 8], ecx
push 1
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], 8
call fcn.00418c90
mov eax, dword [ebp - 0x88]
mov dword [ebp - 4], 0xffffffff
cmp eax, edi
je 0x422741
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x422738
cmp al, 0xff
je 0x422738
dec al
mov byte [ecx], al
jmp 0x422741
push ecx
call fcn.0048b36f
add esp, 4
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
add ecx, 0x24
inc eax
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x24]
add ebx, 4
add esi, 0x10
cmp eax, ecx
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x34], esi
jl 0x422518
mov edi, dword [ebp - 0x1c]
mov esi, ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
push esi
push edi
push edx
push eax
call fcn.00430e50
add esp, 0x10
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
push ecx
push edx
call fcn.0042fdb0
mov eax, dword [ebp - 0x14]
add esp, 8
push eax
call fcn.0042bd50
mov ecx, dword [ebp + 0x14]
add esp, 4
mov dword [ebp - 4], 9
lea edx, [ecx*4]
push edx
call fcn.0048b346
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ecx, ecx
mov dword [ebp - 4], 0xffffffff
jne 0x42286d
mov esi, dword [ebp - 0x24]
test esi, esi
jle 0x422833
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00473084
add esp, 4
test esi, esi
jle 0x42281b
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x24]
sub edi, esi
mov ecx, dword [esi + edi]
push ecx
call fcn.00473084
mov edx, dword [esi]
add esp, 4
push edx
call fcn.00473084
add esp, 4
add esi, 4
dec ebx
jne 0x4227fe
mov eax, dword [ebp - 0x30]
push eax
call fcn.00473084
mov ecx, dword [ebp - 0x2c]
add esp, 4
push ecx
call fcn.00473084
add esp, 4
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x3c]
push eax
mov dword [edx], 1
call fcn.00471ad3
add esp, 4
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x14]
push ecx
push edx
call fcn.00430570
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34
mov eax, dword [ebp - 0x18]
xor edx, edx
mov esi, dword [eax + 4]
test esi, esi
jbe 0x42288f
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x18]
mov dword [ecx], eax
mov edi, dword [ebp - 0x18]
inc edx
add eax, esi
add ecx, 4
cmp edx, dword [edi + 4]
jb 0x42287f
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0042bd70
add esp, 4
mov dword [ebp - 0x50], eax
test eax, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x34], 0
jle 0x422bf3
mov ecx, dword [eax + 0xc4]
mov edx, dword [ebp - 0x20]
test ecx, ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x38], edx
jbe 0x422b2f
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx]
push edx
push eax
call fcn.00430270
mov eax, dword [0x4eb358]
add esp, 8
xor edi, edi
cmp eax, 0xffffffff
je 0x42298c
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x422987
push 0xb8
call fcn.0048b346
add esp, 4
mov dword [ebp - 0x48], eax
test eax, eax
mov dword [ebp - 4], 0xb
je 0x422921
mov ecx, eax
call fcn.00418520
mov edi, eax
jmp 0x422923
xor edi, edi
mov eax, dword [0x4eb358]
push edi
push eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x422958
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x5c]
push 0x4cb060
push ecx
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x5c], eax
call fcn.00472a64
push 8
call fcn.0048b346
add esp, 4
mov esi, eax
push 0x4eb360
mov dword [esi], edi
call ebx
mov edx, dword [0x4eb35c]
push 0x4eb360
mov dword [esi + 4], edx
mov dword [0x4eb35c], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x4eb358]
cmp dword [edi + 4], 1
jne 0x422b08
xor edi, edi
cmp eax, 0xffffffff
je 0x422a43
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x422a3e
push 0xb8
call fcn.0048b346
add esp, 4
mov dword [ebp - 0x48], eax
test eax, eax
mov dword [ebp - 4], 0xc
je 0x4229d8
mov ecx, eax
call fcn.00418520
mov edi, eax
jmp 0x4229da
xor edi, edi
mov eax, dword [0x4eb358]
push edi
push eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x422a0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x64]
push 0x4cb060
push ecx
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x64], eax
call fcn.00472a64
push 8
call fcn.0048b346
add esp, 4
mov esi, eax
push 0x4eb360
mov dword [esi], edi
call ebx
mov edx, dword [0x4eb35c]
push 0x4eb360
mov dword [esi + 4], edx
mov dword [0x4eb35c], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x4eb358]
cmp dword [edi], 0
je 0x422b08
xor edi, edi
cmp eax, 0xffffffff
je 0x422af1
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x422af1
push 0xb8
call fcn.0048b346
add esp, 4
mov dword [ebp - 0x48], eax
test eax, eax
mov dword [ebp - 4], 0xd
je 0x422a8e
mov ecx, eax
call fcn.00418520
mov edi, eax
jmp 0x422a90
xor edi, edi
mov eax, dword [0x4eb358]
push edi
push eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x422ac2
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x60]
push 0x4cb060
push ecx
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x60], eax
call fcn.00472a64
push 8
call fcn.0048b346
add esp, 4
mov esi, eax
push 0x4eb360
mov dword [esi], edi
call ebx
mov edx, dword [0x4eb35c]
push 0x4eb360
mov dword [esi + 4], edx
mov dword [0x4eb35c], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
mov ecx, dword [eax + 0xc4]
push ecx
push edx
call dword [edi]
neg eax
sbb eax, eax
inc eax
jmp 0x422b0a
xor eax, eax
test eax, eax
jne 0x422b46
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x38]
inc ecx
mov edx, dword [eax + 0xc4]
add esi, 4
cmp ecx, edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x38], esi
jb 0x4228cb
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x50]
inc ecx
cmp ecx, edx
mov dword [ebp - 0x34], ecx
jl 0x4228b0
jmp 0x422bf3
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
push ecx
mov dword [eax], 0xe
call fcn.00471ad3
mov esi, dword [ebp - 0x24]
add esp, 4
test esi, esi
jle 0x422bb2
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00473084
add esp, 4
test esi, esi
jle 0x422b9a
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x24]
sub edi, esi
mov eax, dword [esi + edi]
push eax
call fcn.00473084
mov ecx, dword [esi]
add esp, 4
push ecx
call fcn.00473084
add esp, 4
add esi, 4
dec ebx
jne 0x422b7d
mov edx, dword [ebp - 0x30]
push edx
call fcn.00473084
mov eax, dword [ebp - 0x2c]
add esp, 4
push eax
call fcn.00473084
add esp, 4
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
push ecx
push edx
call fcn.00430080
add esp, 8
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x14]
push eax
push ecx
call fcn.00430570
mov edx, dword [ebp - 0x20]
add esp, 8
push edx
call fcn.0048b36f
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34
mov ecx, dword [ebp - 0x18]
push ecx
push eax
call fcn.00430080
add esp, 8
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x14]
push edx
push eax
call fcn.00430570
mov esi, dword [ebp - 0x24]
add esp, 8
test esi, esi
jle 0x422c6d
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00473084
add esp, 4
test esi, esi
jle 0x422c55
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x24]
sub edi, esi
mov edx, dword [esi + edi]
push edx
call fcn.00473084
mov eax, dword [esi]
add esp, 4
push eax
call fcn.00473084
add esp, 4
add esi, 4
dec ebx
jne 0x422c32
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00473084
mov edx, dword [ebp - 0x2c]
add esp, 4
push edx
call fcn.00473084
add esp, 4
mov eax, dword [0x4eb358]
mov dword [ebp - 0x1c], 0
cmp eax, 0xffffffff
je 0x422d23
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
mov dword [ebp - 0x1c], eax
jne 0x422d23
push 0xb8
call fcn.0048b346
add esp, 4
mov dword [ebp - 0x68], eax
test eax, eax
mov dword [ebp - 4], 0xe
je 0x422cba
mov ecx, eax
call fcn.00418520
mov edi, eax
jmp 0x422cbc
xor edi, edi
mov eax, dword [0x4eb358]
push edi
push eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x422cf4
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x58]
push 0x4cb060
push ecx
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x58], eax
call fcn.00472a64
push 8
call fcn.0048b346
add esp, 4
mov esi, eax
push 0x4eb360
mov dword [esi], edi
call ebx
mov edx, dword [0x4eb35c]
push 0x4eb360
mov dword [esi + 4], edx
mov dword [0x4eb35c], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + 0x4c]
mov edi, dword [eax + 0x48]
cmp ebx, ebx
mov esi, ebx
je 0x422d6a
mov eax, dword [0x4b08e0]
mov ecx, edi
push eax
push 0
push esi
call fcn.00419f90
mov ecx, dword [0x4b08e0]
lea edx, [esi + 0x10]
push ecx
push 0
push edx
lea ecx, [edi + 0x10]
call fcn.00419f90
mov eax, dword [esi + 0x20]
add esi, 0x24
mov dword [edi + 0x20], eax
add edi, 0x24
cmp esi, ebx
jne 0x422d32
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + 0x4c]
mov esi, edi
cmp edi, ebx
je 0x422d9b
push 1
lea ecx, [esi + 0x10]
mov dword [ebp - 4], 0xf
call fcn.00418c90
push 1
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.00418c90
add esi, 0x24
cmp esi, ebx
jne 0x422d73
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
push edx
mov dword [ecx + 0x4c], edi
call fcn.0048b36f
mov eax, dword [ebp - 0x44]
add esp, 4
test eax, eax
je 0x422dbd
push eax
call fcn.0048b36f
add esp, 4
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00471ad3
mov ecx, dword [ebp - 0xc]
add esp, 4
mov eax, 1
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34