Function at 0x77306465
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x7732f004]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov edi, ecx
push 0
mov dword [esp + 0x30], edi
call dword [sym.imp.msvcrt.dll_time]
pop ecx
push eax
call dword [sym.imp.msvcrt.dll_srand]
cmp dword [edi + 0x358], 0
pop ecx
jne 0x77306937
lea eax, [edi + 0x6c]
mov dword [esp + 0x30], eax
lea esi, [edi + 0x24c]
lea eax, [edi + 0x84]
mov dword [esp + 0x28], eax
mov ecx, edi
call fcn.77306b25
mov ebx, eax
mov dword [esp + 0x18], edx
push esi
mov dword [esp + 0x24], ebx
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
imul ecx, dword [edi + 0x334], 0x2710
lea eax, [esp + 0x10]
and dword [esp + 0x10], 0
mov esi, dword [edi]
push eax
xor eax, eax
add ecx, ebx
adc eax, dword [esp + 0x1c]
push eax
push ecx
mov ecx, dword [esi + 0x34]
push edi
call dword [0x77333154]
call dword [esi + 0x34]
cmp dword [edi + 0x368], 0
mov esi, dword [esp + 0x10]
je 0x77306523
mov eax, dword [edi + 0x32c]
cmp eax, esi
jl 0x7730651c
lea esi, [eax + 0xa]
mov dword [esp + 0x10], esi
and dword [edi + 0x368], 0
mov eax, dword [edi + 0x328]
mov ecx, dword [edi + 0x330]
add eax, 0x7800
cmp ecx, eax
jg 0x7730654a
push 1
push 0
push 0
push ecx
mov ecx, edi
call fcn.7730b85c
mov esi, dword [esp + 0x10]
cmp dword [edi + 0x32c], esi
jge 0x7730672b
lea eax, [edi + 0x54]
mov dword [edi + 0x32c], esi
xor ebx, ebx
mov ecx, dword [eax]
mov dword [esp + 0xc], ebx
lea eax, [ecx - 8]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x7730659a
cmp dword [ecx + 0xec], ebx
je 0x7730659a
mov ebx, dword [ecx + 0x64]
lea eax, [esp + 0x1c]
push eax
sub esi, ebx
push esi
call fcn.77319aab
mov eax, dword [esp + 0x1c]
cmp eax, esi
jge 0x7730659a
add eax, ebx
mov dword [edi + 0x32c], eax
mov ecx, dword [edi + 0x5c]
lea eax, [ecx - 8]
jmp 0x773065eb
cmp dword [ecx + 0xec], 0
je 0x773065e3
mov eax, dword [ecx + 0x68]
mov esi, dword [edi + 0x32c]
test eax, eax
je 0x773065bc
cmp esi, eax
jg 0x773065d6
mov ebx, dword [ecx + 0x64]
lea eax, [esp + 0x1c]
push eax
sub esi, ebx
push esi
call fcn.77319aab
mov eax, dword [esp + 0x1c]
cmp eax, esi
jge 0x773065e3
add eax, ebx
xor ebx, ebx
mov dword [edi + 0x32c], eax
inc ebx
mov dword [esp + 0xc], ebx
mov eax, dword [ecx + 8]
mov ecx, eax
add eax, 0xfffffff8
neg ecx
sbb ecx, ecx
and ecx, eax
jne 0x773065a2
lea esi, [edi + 0x54]
mov ecx, dword [esi]
lea eax, [ecx - 8]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push 3
mov ecx, edi
call fcn.7730611e
mov ecx, dword [esi]
lea eax, [ecx - 8]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x7730668b
mov edx, dword [ecx + 8]
lea eax, [edx - 8]
neg edx
sbb edx, edx
and edx, eax
je 0x7730668b
mov esi, dword [edx + 0x58]
cmp esi, dword [ecx + 0x64]
jg 0x7730668b
mov eax, dword [edx + 0x50]
shr eax, 0xf
and eax, 1
push eax
lea eax, [esi - 1]
push eax
call fcn.773185c7
lea esi, [edi + 0x54]
mov ecx, esi
call fcn.77304a6a
push eax
lea ecx, [edi + 0x6c]
call fcn.7731c7b6
mov ecx, edi
call fcn.77307887
mov ecx, dword [esi]
mov edx, ecx
neg edx
sbb edx, edx
lea eax, [ecx - 8]
and edx, eax
test dword [edx + 0x50], 0x10008000
jne 0x773065f8
mov eax, dword [edi]
push 0
push dword [edx + 0x58]
mov esi, dword [eax + 0x78]
mov ecx, esi
push edi
call dword [0x77333154]
call esi
jmp 0x773065f3
mov ecx, dword [edi + 0x5c]
mov ebx, dword [esp + 0xc]
lea eax, [ecx - 8]
jmp 0x773066a9
mov esi, dword [ecx + 8]
push ecx
push 4
mov ecx, edi
call fcn.7730611e
mov ecx, esi
lea eax, [esi - 8]
neg ecx
sbb ecx, ecx
and ecx, eax
jne 0x77306697
mov ecx, dword [edi + 0x64]
lea eax, [ecx - 8]
jmp 0x773066cb
mov esi, dword [ecx + 8]
push ecx
push 5
mov ecx, edi
call fcn.7730611e
mov ecx, esi
lea eax, [esi - 8]
neg ecx
sbb ecx, ecx
and ecx, eax
jne 0x773066b9
test ebx, ebx
je 0x77306710
push 3
lea edx, [edi + 0x54]
pop esi
mov ecx, dword [edx]
lea eax, [ecx - 8]
jmp 0x773066f9
cmp dword [ecx + 0xec], 0
je 0x773066f1
or dword [ecx + 0x4c], 0x10
mov eax, dword [ecx + 8]
mov ecx, eax
add eax, 0xfffffff8
neg ecx
sbb ecx, ecx
and ecx, eax
jne 0x773066e4
add edx, 8
sub esi, 1
jne 0x773066dd
mov ecx, edi
call fcn.77307887
mov eax, dword [edi + 0x32c]
mov esi, dword [esp + 0x10]
cmp eax, esi
mov dword [edi + 0x328], eax
lea eax, [edi + 0x54]
jl 0x77306559
mov ecx, edi
call fcn.77306bd5
add eax, dword [edi + 0x320]
mov ecx, edx
mov dword [esp + 0xc], eax
adc ecx, dword [edi + 0x324]
xor esi, esi
mov dword [esp + 0x14], ecx
lea ebx, [edi + esi*8]
mov ecx, dword [ebx + 0x3c]
lea eax, [ecx - 8]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x773067b2
imul edx, dword [edi + 0x334], 0x2710
xor eax, eax
add edx, dword [esp + 0xc]
adc eax, dword [esp + 0x14]
add edx, 0x1e8480
adc eax, 0
cmp dword [ecx + 0x9c], eax
jg 0x773067b2
jl 0x7730678a
cmp dword [ecx + 0x98], edx
ja 0x773067b2
test esi, esi
jne 0x773067a0
lea ecx, [edi + 0x3c]
call fcn.77304a6a
push eax
mov ecx, edi
call fcn.773070c6
jmp 0x7730674a
lea ecx, [ebx + 0x3c]
call fcn.77304a6a
push eax
mov ecx, edi
call fcn.77307671
jmp 0x7730674a
inc esi
cmp esi, 2
jbe 0x7730674a
mov edi, dword [esp + 0x30]
push 3
pop ecx
mov dword [esp + 0xc], ecx
mov esi, dword [edi]
lea eax, [esi - 8]
neg esi
sbb esi, esi
and esi, eax
je 0x7730682b
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
sub ecx, 0x989680
mov dword [esp + 0x14], ecx
sbb edx, 0
mov dword [esp + 0x24], edx
mov ebx, dword [esi + 8]
lea eax, [ebx - 8]
neg ebx
sbb ebx, ebx
and ebx, eax
cmp dword [esi + 0xa4], edx
jg 0x77306821
jl 0x77306807
cmp dword [esi + 0xa0], ecx
jae 0x77306821
lea eax, [esi + 8]
mov ecx, edi
push eax
call fcn.77303377
mov ecx, esi
call fcn.773181c4
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
mov esi, ebx
test esi, esi
jne 0x773067e9
mov ecx, dword [esp + 0xc]
add edi, 8
sub ecx, 1
mov dword [esp + 0xc], ecx
jne 0x773067c3
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov esi, dword [eax]
lea eax, [esi - 8]
neg esi
sbb esi, esi
and esi, eax
je 0x773068ab
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
sub ecx, 0x989680
mov edi, dword [esp + 0x28]
sbb edx, 0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], edx
mov ebx, dword [esi + 8]
lea eax, [ebx - 8]
neg ebx
sbb ebx, ebx
and ebx, eax
cmp dword [esi + 0xa4], edx
jg 0x773068a1
jl 0x77306887
cmp dword [esi + 0xa0], ecx
jae 0x773068a1
lea eax, [esi + 8]
mov ecx, edi
push eax
call fcn.77303377
mov ecx, esi
call fcn.773181c4
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov esi, ebx
test esi, esi
jne 0x77306869
mov edi, dword [esp + 0x2c]
lea eax, [edi + 0x24c]
push eax
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
lea esi, [edi + 0x264]
push esi
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
lea ebx, [edi + 0x13c]
jmp 0x773068fc
mov edx, dword [esp + 0x20]
sub edx, dword [edi + 0xf8]
mov eax, dword [esp + 0x18]
sbb eax, dword [edi + 0xfc]
cmp dword [ecx + 0x24], eax
jg 0x77306902
jl 0x773068ed
cmp dword [ecx + 0x20], edx
jae 0x77306902
mov ecx, ebx
call fcn.7731c727
push eax
mov ecx, edi
call fcn.7730c46b
mov ecx, dword [ebx]
test ecx, ecx
jne 0x773068cd
push esi
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov eax, dword [edi + 0x2dc]
push 0x64
test eax, eax
je 0x7730691e
push eax
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
jmp 0x77306924
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
cmp dword [edi + 0x358], 0
lea esi, [edi + 0x24c]
je 0x773064b9
and dword [edi + 0x358], 0
cmp byte [edi + 0x380], 0
je 0x77306956
mov ecx, edi
call fcn.773051c5
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.7732d6e0
mov esp, ebp
pop ebp
ret