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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, ecx
push 0
mov dword [esp + 0x2c], 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 0x7730671c
lea eax, [edi + 0x6c]
mov dword [esp + 0x30], eax
lea esi, [edi + 0x24c]
lea eax, [edi + 0x84]
mov dword [esp + 0x24], eax
mov ecx, edi
call fcn.773068e4
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 + 0x14]
and dword [esp + 0x14], 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 [0x77331158]
call dword [esi + 0x34]
cmp dword [edi + 0x368], 0
mov esi, dword [esp + 0x14]
je 0x77306308
mov eax, dword [edi + 0x32c]
cmp eax, esi
jl 0x77306301
lea esi, [eax + 0xa]
mov dword [esp + 0x14], esi
and dword [edi + 0x368], 0
mov eax, dword [edi + 0x328]
mov ecx, dword [edi + 0x330]
add eax, 0x7800
cmp ecx, eax
jg 0x7730632f
push 1
push 0
push 0
push ecx
mov ecx, edi
call fcn.7730b343
mov esi, dword [esp + 0x14]
cmp dword [edi + 0x32c], esi
jge 0x77306510
lea eax, [edi + 0x54]
mov dword [edi + 0x32c], esi
xor ebx, ebx
mov ecx, dword [eax]
mov dword [esp + 0x10], ebx
lea eax, [ecx - 8]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x7730637f
cmp dword [ecx + 0xec], ebx
je 0x7730637f
mov ebx, dword [ecx + 0x64]
lea eax, [esp + 0x1c]
push eax
sub esi, ebx
push esi
call fcn.77318ed9
mov eax, dword [esp + 0x1c]
cmp eax, esi
jge 0x7730637f
add eax, ebx
mov dword [edi + 0x32c], eax
mov ecx, dword [edi + 0x5c]
lea eax, [ecx - 8]
jmp 0x773063d0
cmp dword [ecx + 0xec], 0
je 0x773063c8
mov eax, dword [ecx + 0x68]
mov esi, dword [edi + 0x32c]
test eax, eax
je 0x773063a1
cmp esi, eax
jg 0x773063bb
mov ebx, dword [ecx + 0x64]
lea eax, [esp + 0x1c]
push eax
sub esi, ebx
push esi
call fcn.77318ed9
mov eax, dword [esp + 0x1c]
cmp eax, esi
jge 0x773063c8
add eax, ebx
xor ebx, ebx
mov dword [edi + 0x32c], eax
inc ebx
mov dword [esp + 0x10], ebx
mov eax, dword [ecx + 8]
mov ecx, eax
add eax, 0xfffffff8
neg ecx
sbb ecx, ecx
and ecx, eax
jne 0x77306387
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.77305f21
mov ecx, dword [esi]
lea eax, [ecx - 8]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x77306470
mov edx, dword [ecx + 8]
lea eax, [edx - 8]
neg edx
sbb edx, edx
and edx, eax
je 0x77306470
mov esi, dword [edx + 0x58]
cmp esi, dword [ecx + 0x64]
jg 0x77306470
mov eax, dword [edx + 0x50]
shr eax, 0xf
and eax, 1
push eax
lea eax, [esi - 1]
push eax
call fcn.77317a88
lea esi, [edi + 0x54]
mov ecx, esi
call fcn.7730496a
push eax
lea ecx, [edi + 0x6c]
call fcn.7731bb06
mov ecx, edi
call fcn.773075e1
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 0x773063dd
mov eax, dword [edi]
push 0
push dword [edx + 0x58]
mov esi, dword [eax + 0x78]
mov ecx, esi
push edi
call dword [0x77331158]
call esi
jmp 0x773063d8
mov ecx, dword [edi + 0x5c]
mov ebx, dword [esp + 0x10]
lea eax, [ecx - 8]
jmp 0x7730648e
mov esi, dword [ecx + 8]
push ecx
push 4
mov ecx, edi
call fcn.77305f21
mov ecx, esi
lea eax, [esi - 8]
neg ecx
sbb ecx, ecx
and ecx, eax
jne 0x7730647c
mov ecx, dword [edi + 0x64]
lea eax, [ecx - 8]
jmp 0x773064b0
mov esi, dword [ecx + 8]
push ecx
push 5
mov ecx, edi
call fcn.77305f21
mov ecx, esi
lea eax, [esi - 8]
neg ecx
sbb ecx, ecx
and ecx, eax
jne 0x7730649e
test ebx, ebx
je 0x773064f5
push 3
lea edx, [edi + 0x54]
pop esi
mov ecx, dword [edx]
lea eax, [ecx - 8]
jmp 0x773064de
cmp dword [ecx + 0xec], 0
je 0x773064d6
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 0x773064c9
add edx, 8
sub esi, 1
jne 0x773064c2
mov ecx, edi
call fcn.773075e1
mov eax, dword [edi + 0x32c]
mov esi, dword [esp + 0x14]
cmp eax, esi
mov dword [edi + 0x328], eax
lea eax, [edi + 0x54]
jl 0x7730633e
mov ecx, edi
call fcn.7730697d
add eax, dword [edi + 0x320]
mov ecx, edx
mov dword [esp + 0x10], eax
adc ecx, dword [edi + 0x324]
xor esi, esi
mov dword [esp + 0x2c], ecx
lea ebx, [edi + esi*8]
mov ecx, dword [ebx + 0x3c]
lea eax, [ecx - 8]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x77306597
imul edx, dword [edi + 0x334], 0x2710
xor eax, eax
add edx, dword [esp + 0x10]
adc eax, dword [esp + 0x2c]
add edx, 0x1e8480
adc eax, 0
cmp dword [ecx + 0x9c], eax
jg 0x77306597
jl 0x7730656f
cmp dword [ecx + 0x98], edx
ja 0x77306597
test esi, esi
jne 0x77306585
lea ecx, [edi + 0x3c]
call fcn.7730496a
push eax
mov ecx, edi
call fcn.77306e2e
jmp 0x7730652f
lea ecx, [ebx + 0x3c]
call fcn.7730496a
push eax
mov ecx, edi
call fcn.773073db
jmp 0x7730652f
inc esi
cmp esi, 2
jbe 0x7730652f
mov edi, dword [esp + 0x30]
push 3
pop ecx
mov dword [esp + 0x10], ecx
mov esi, dword [edi]
lea eax, [esi - 8]
neg esi
sbb esi, esi
and esi, eax
je 0x77306610
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
sub ecx, 0x989680
mov dword [esp + 0x2c], ecx
sbb edx, 0
mov dword [esp + 0x34], edx
mov ebx, dword [esi + 8]
lea eax, [ebx - 8]
neg ebx
sbb ebx, ebx
and ebx, eax
cmp dword [esi + 0xa4], edx
jg 0x77306606
jl 0x773065ec
cmp dword [esi + 0xa0], ecx
jae 0x77306606
lea eax, [esi + 8]
mov ecx, edi
push eax
call fcn.77303337
mov ecx, esi
call fcn.773176cf
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov esi, ebx
test esi, esi
jne 0x773065ce
mov ecx, dword [esp + 0x10]
add edi, 8
sub ecx, 1
mov dword [esp + 0x10], ecx
jne 0x773065a8
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov esi, dword [eax]
lea eax, [esi - 8]
neg esi
sbb esi, esi
and esi, eax
je 0x77306690
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
sub ecx, 0x989680
mov edi, dword [esp + 0x24]
sbb edx, 0
mov dword [esp + 0x34], ecx
mov dword [esp + 0x2c], edx
mov ebx, dword [esi + 8]
lea eax, [ebx - 8]
neg ebx
sbb ebx, ebx
and ebx, eax
cmp dword [esi + 0xa4], edx
jg 0x77306686
jl 0x7730666c
cmp dword [esi + 0xa0], ecx
jae 0x77306686
lea eax, [esi + 8]
mov ecx, edi
push eax
call fcn.77303337
mov ecx, esi
call fcn.773176cf
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
mov esi, ebx
test esi, esi
jne 0x7730664e
mov edi, dword [esp + 0x28]
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 0x773066e1
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 0x773066e7
jl 0x773066d2
cmp dword [ecx + 0x20], edx
jae 0x773066e7
mov ecx, ebx
call fcn.7731ba77
push eax
mov ecx, edi
call fcn.7730bee9
mov ecx, dword [ebx]
test ecx, ecx
jne 0x773066b2
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 0x77306703
push eax
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
jmp 0x77306709
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
cmp dword [edi + 0x358], 0
lea esi, [edi + 0x24c]
je 0x7730629e
and dword [edi + 0x358], 0
cmp byte [edi + 0x380], 0
je 0x7730673b
mov ecx, edi
call fcn.7730508a
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret