Function at 0x504420
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d9415
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x634254]
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 dword [ebp - 0x88], ecx
mov eax, dword [ebp + 0x24]
mov ecx, 7
mov edi, dword [ebp + 0x20]
mov edx, ecx
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 0x80], eax
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x40], ax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x14], edx
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x58]
cmp eax, ebx
je 0x50450c
cmp dword [ebx + 0x14], 8
mov eax, ebx
mov dword [ebp - 0x78], ebx
jb 0x5044dd
mov eax, dword [ebx]
mov dword [ebp - 0x78], eax
mov ebx, dword [ebx + 0x10]
cmp ebx, 7
ja 0x50455e
lea esi, [ebx + ebx]
mov dword [ebp - 0x48], ebx
push esi
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00570d00
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x58], ax
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x7c], ecx
lea eax, [ebp - 0x40]
cmp eax, edi
je 0x50470d
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp - 0x78], edi
jb 0x504527
mov eax, dword [edi]
mov dword [ebp - 0x78], eax
mov ebx, dword [edi + 0x10]
cmp ebx, ecx
ja 0x504613
cmp ecx, 8
mov dword [ebp - 0x30], ebx
lea esi, [ebx + ebx]
push esi
lea edi, [ebp - 0x40]
cmovae edi, dword [ebp - 0x40]
push eax
push edi
call fcn.00570d00
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x74], ecx
jmp 0x504710
cmp ebx, 0x7ffffffe
ja 0x5048f2
mov esi, ebx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x504583
mov esi, SysReAllocString
mov eax, 0xfffffffe
jmp 0x5045a4
mov eax, 0xa
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x504913
add eax, eax
cmp eax, 0x1000
jb 0x5045cb
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x504913
push ecx
call fcn.005a1c68
add esp, 4
test eax, eax
je 0x5048f7
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x5045e6
test eax, eax
je 0x5045e4
push eax
call fcn.005a1c68
mov edi, eax
add esp, 4
test edi, edi
je 0x504905
jmp 0x5045e6
xor edi, edi
mov dword [ebp - 0x44], esi
lea esi, [ebx + ebx]
push esi
push dword [ebp - 0x78]
mov dword [ebp - 0x48], ebx
push edi
call fcn.00570780
add esp, 0xc
mov dword [ebp - 0x58], edi
xor eax, eax
mov word [edi + esi], ax
mov edi, dword [ebp - 0x84]
lea ecx, [eax + 7]
jmp 0x50450c
cmp ebx, 0x7ffffffe
ja 0x504918
mov esi, ebx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x504638
mov esi, SysReAllocString
mov eax, 0xfffffffe
jmp 0x504672
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x504653
mov esi, SysReAllocString
mov eax, 0xfffffffe
jmp 0x504672
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x504913
add eax, eax
cmp eax, 0x1000
jb 0x504699
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x504913
push ecx
call fcn.005a1c68
add esp, 4
test eax, eax
je 0x50491d
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x5046b4
test eax, eax
je 0x5046b2
push eax
call fcn.005a1c68
mov edi, eax
add esp, 4
test edi, edi
je 0x50492b
jmp 0x5046b4
xor edi, edi
mov dword [ebp - 0x2c], esi
lea esi, [ebx + ebx]
push esi
push dword [ebp - 0x78]
mov dword [ebp - 0x30], ebx
push edi
call fcn.00570780
mov edx, dword [ebp - 0x7c]
xor eax, eax
add esp, 0xc
mov word [edi + esi], ax
cmp edx, 8
jb 0x50470a
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x504700
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x504939
push edx
push ecx
call fcn.0056d0c8
add esp, 8
mov dword [ebp - 0x40], edi
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0x80]
lea eax, [ebp - 0x28]
cmp eax, edx
je 0x504854
cmp dword [edx + 0x14], 8
mov eax, edx
mov dword [ebp - 0x7c], edx
jb 0x50472e
mov eax, dword [edx]
mov dword [ebp - 0x7c], eax
mov ebx, dword [edx + 0x10]
cmp ebx, ecx
ja 0x50475b
cmp ecx, 8
mov dword [ebp - 0x18], ebx
lea esi, [ebx + ebx]
push esi
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
push eax
push edi
call fcn.00570d00
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
jmp 0x504854
cmp ebx, 0x7ffffffe
ja 0x50493e
mov esi, ebx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x504780
mov esi, SysReAllocString
mov eax, 0xfffffffe
jmp 0x5047b9
mov eax, ecx
mov edx, SysReAllocString
shr eax, 1
sub edx, eax
cmp ecx, edx
jbe 0x50479b
mov esi, SysReAllocString
mov eax, 0xfffffffe
jmp 0x5047b9
add eax, ecx
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x504913
add eax, eax
cmp eax, 0x1000
jb 0x5047e0
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x504913
push ecx
call fcn.005a1c68
add esp, 4
test eax, eax
je 0x504943
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x5047fb
test eax, eax
je 0x5047f9
push eax
call fcn.005a1c68
mov edi, eax
add esp, 4
test edi, edi
je 0x504951
jmp 0x5047fb
xor edi, edi
mov dword [ebp - 0x14], esi
lea esi, [ebx + ebx]
push esi
push dword [ebp - 0x7c]
mov dword [ebp - 0x18], ebx
push edi
call fcn.00570780
mov edx, dword [ebp - 0x74]
xor eax, eax
add esp, 0xc
mov word [edi + esi], ax
cmp edx, 8
jb 0x504851
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x504847
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50495f
push edx
push ecx
call fcn.0056d0c8
add esp, 8
mov dword [ebp - 0x28], edi
push 0x63c674
mov dword [ebp - 0x80], 0x63c674
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov esi, dword [ebp - 0x88]
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
push ecx
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
je 0x504889
mov ecx, eax
call fcn.0050f680
add dword [esi + 4], 0x5c
jmp 0x504891
push eax
mov ecx, esi
call fcn.0050d640
cmp dword [esi + 0xc], 0
jne 0x5048c1
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
push 0
push 0
push esi
push 0x501c60
push 0
push 0
mov dword [esi + 0x10], eax
call fcn.00592655
add esp, 0x18
mov dword [esi + 0xc], eax
push 0x63c674
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
lea ecx, [ebp - 0x6c]
call fcn.00504330
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.0056d855
mov esp, ebp
pop ebp
ret 0x20
call fcn.004072dc
push 0x630328
lea eax, [ebp - 0x6d]
push eax
call fcn.0057134b
push 0x630328
lea eax, [ebp - 0x6e]
push eax
call fcn.0057134b
call fcn.00407541
call fcn.004072dc
push 0x630328
lea eax, [ebp - 0x6e]
push eax
call fcn.0057134b
push 0x630328
lea eax, [ebp - 0x6d]
push eax
call fcn.0057134b
call fcn.0057b201
call fcn.004072dc
push 0x630328
lea eax, [ebp - 0x6e]
push eax
call fcn.0057134b
push 0x630328
lea eax, [ebp - 0x6d]
push eax
call fcn.0057134b
call fcn.0057b201
int3