Function at 0x77306245
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 0x7730670c
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.773068d4
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 [0x77331150]
call dword [esi + 0x34]
cmp dword [edi + 0x368], 0
mov esi, dword [esp + 0x14]
je 0x773062f8
mov eax, dword [edi + 0x32c]
cmp eax, esi
jl 0x773062f1
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 0x7730631f
push 1
push 0
push 0
push ecx
mov ecx, edi
call fcn.7730b311
mov esi, dword [esp + 0x14]
cmp dword [edi + 0x32c], esi
jge 0x77306500
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 0x7730636f
cmp dword [ecx + 0xec], ebx
je 0x7730636f
mov ebx, dword [ecx + 0x64]
lea eax, [esp + 0x1c]
push eax
sub esi, ebx
push esi
call fcn.77318ea9
mov eax, dword [esp + 0x1c]
cmp eax, esi
jge 0x7730636f
add eax, ebx
mov dword [edi + 0x32c], eax
mov ecx, dword [edi + 0x5c]
lea eax, [ecx - 8]
jmp 0x773063c0
cmp dword [ecx + 0xec], 0
je 0x773063b8
mov eax, dword [ecx + 0x68]
mov esi, dword [edi + 0x32c]
test eax, eax
je 0x77306391
cmp esi, eax
jg 0x773063ab
mov ebx, dword [ecx + 0x64]
lea eax, [esp + 0x1c]
push eax
sub esi, ebx
push esi
call fcn.77318ea9
mov eax, dword [esp + 0x1c]
cmp eax, esi
jge 0x773063b8
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 0x77306377
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 0x77306460
mov edx, dword [ecx + 8]
lea eax, [edx - 8]
neg edx
sbb edx, edx
and edx, eax
je 0x77306460
mov esi, dword [edx + 0x58]
cmp esi, dword [ecx + 0x64]
jg 0x77306460
mov eax, dword [edx + 0x50]
shr eax, 0xf
and eax, 1
push eax
lea eax, [esi - 1]
push eax
call fcn.77317a58
lea esi, [edi + 0x54]
mov ecx, esi
call fcn.7730496a
push eax
lea ecx, [edi + 0x6c]
call fcn.7731bb25
mov ecx, edi
call fcn.773075c9
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 0x773063cd
mov eax, dword [edi]
push 0
push dword [edx + 0x58]
mov esi, dword [eax + 0x78]
mov ecx, esi
push edi
call dword [0x77331150]
call esi
jmp 0x773063c8
mov ecx, dword [edi + 0x5c]
mov ebx, dword [esp + 0x10]
lea eax, [ecx - 8]
jmp 0x7730647e
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 0x7730646c
mov ecx, dword [edi + 0x64]
lea eax, [ecx - 8]
jmp 0x773064a0
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 0x7730648e
test ebx, ebx
je 0x773064e5
push 3
lea edx, [edi + 0x54]
pop esi
mov ecx, dword [edx]
lea eax, [ecx - 8]
jmp 0x773064ce
cmp dword [ecx + 0xec], 0
je 0x773064c6
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 0x773064b9
add edx, 8
sub esi, 1
jne 0x773064b2
mov ecx, edi
call fcn.773075c9
mov eax, dword [edi + 0x32c]
mov esi, dword [esp + 0x14]
cmp eax, esi
mov dword [edi + 0x328], eax
lea eax, [edi + 0x54]
jl 0x7730632e
mov ecx, edi
call fcn.7730696d
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 0x77306587
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 0x77306587
jl 0x7730655f
cmp dword [ecx + 0x98], edx
ja 0x77306587
test esi, esi
jne 0x77306575
lea ecx, [edi + 0x3c]
call fcn.7730496a
push eax
mov ecx, edi
call fcn.77306e1e
jmp 0x7730651f
lea ecx, [ebx + 0x3c]
call fcn.7730496a
push eax
mov ecx, edi
call fcn.773073c3
jmp 0x7730651f
inc esi
cmp esi, 2
jbe 0x7730651f
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 0x77306600
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 0x773065f6
jl 0x773065dc
cmp dword [esi + 0xa0], ecx
jae 0x773065f6
lea eax, [esi + 8]
mov ecx, edi
push eax
call fcn.77303337
mov ecx, esi
call fcn.7731769f
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov esi, ebx
test esi, esi
jne 0x773065be
mov ecx, dword [esp + 0x10]
add edi, 8
sub ecx, 1
mov dword [esp + 0x10], ecx
jne 0x77306598
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 0x77306680
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 0x77306676
jl 0x7730665c
cmp dword [esi + 0xa0], ecx
jae 0x77306676
lea eax, [esi + 8]
mov ecx, edi
push eax
call fcn.77303337
mov ecx, esi
call fcn.7731769f
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
mov esi, ebx
test esi, esi
jne 0x7730663e
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 0x773066d1
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 0x773066d7
jl 0x773066c2
cmp dword [ecx + 0x20], edx
jae 0x773066d7
mov ecx, ebx
call fcn.7731ba96
push eax
mov ecx, edi
call fcn.7730beb9
mov ecx, dword [ebx]
test ecx, ecx
jne 0x773066a2
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 0x773066f3
push eax
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
jmp 0x773066f9
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
cmp dword [edi + 0x358], 0
lea esi, [edi + 0x24c]
je 0x7730628e
and dword [edi + 0x358], 0
cmp byte [edi + 0x380], 0
je 0x7730672b
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