Function at 0x7730647b
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 0x77306962
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.77306b43
mov ebx, eax
mov dword [esp + 0x14], 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 + 0x18]
push eax
push ecx
mov ecx, dword [esi + 0x34]
push edi
call dword [0x77332150]
call dword [esi + 0x34]
cmp dword [edi + 0x368], 0
mov esi, dword [esp + 0x10]
je 0x7730652e
mov eax, dword [edi + 0x32c]
cmp eax, esi
jl 0x77306527
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 0x77306555
push 1
push 0
push 0
push ecx
mov ecx, edi
call fcn.7730b600
mov esi, dword [esp + 0x10]
cmp dword [edi + 0x32c], esi
jge 0x77306758
lea ebx, [edi + 0x54]
and dword [esp + 0x1c], 0
mov dword [edi + 0x32c], esi
mov ebx, dword [ebx]
mov ecx, ebx
neg ecx
sbb ecx, ecx
lea eax, [ebx - 8]
and ecx, eax
je 0x773065af
cmp dword [ecx + 0xec], 0
je 0x773065af
mov eax, dword [ecx + 0x64]
sub esi, eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x18]
push eax
push esi
call fcn.773194ff
mov ecx, dword [esp + 0x18]
cmp ecx, esi
jge 0x773065af
mov eax, dword [esp + 0x2c]
add eax, ecx
mov dword [edi + 0x32c], eax
mov ecx, dword [edi + 0x5c]
lea eax, [ecx - 8]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x77306612
cmp dword [ecx + 0xec], 0
je 0x773065ff
mov eax, dword [ecx + 0x68]
mov esi, dword [edi + 0x32c]
test eax, eax
je 0x773065d7
cmp esi, eax
jg 0x773065f1
mov ebx, dword [ecx + 0x64]
lea eax, [esp + 0x18]
push eax
sub esi, ebx
push esi
call fcn.773194ff
mov eax, dword [esp + 0x18]
cmp eax, esi
jge 0x773065ff
add eax, ebx
mov dword [esp + 0x1c], 1
mov dword [edi + 0x32c], eax
mov eax, dword [ecx + 8]
mov ecx, eax
add eax, 0xfffffff8
neg ecx
sbb ecx, ecx
and ecx, eax
jne 0x773065bd
mov ebx, dword [edi + 0x54]
lea eax, [ebx - 8]
mov ecx, edi
neg ebx
sbb ebx, ebx
and ebx, eax
push ebx
push 3
call fcn.7730614a
lea ebx, [edi + 0x54]
mov ecx, dword [ebx]
lea eax, [ecx - 8]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x773066be
mov edx, dword [ecx + 8]
lea eax, [edx - 8]
neg edx
sbb edx, edx
and edx, eax
je 0x773066be
mov esi, dword [edx + 0x58]
cmp esi, dword [ecx + 0x64]
jg 0x773066be
mov eax, dword [edx + 0x50]
shr eax, 0xf
and eax, 1
push eax
lea eax, [esi - 1]
push eax
call fcn.773180ed
mov ecx, ebx
call fcn.77304b00
push eax
lea ecx, [edi + 0x6c]
call fcn.7731c281
mov ecx, edi
call fcn.7730784f
mov ecx, dword [ebx]
mov edx, ecx
neg edx
sbb edx, edx
lea eax, [ecx - 8]
and edx, eax
test dword [edx + 0x50], 0x10008000
jne 0x773066a6
mov eax, dword [edi]
push 0
push dword [edx + 0x58]
mov esi, dword [eax + 0x78]
mov ecx, esi
push edi
call dword [0x77332150]
call esi
mov ecx, dword [ebx]
lea eax, [ecx - 8]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push 3
mov ecx, edi
call fcn.7730614a
jmp 0x77306628
mov ecx, dword [edi + 0x5c]
lea eax, [ecx - 8]
jmp 0x773066d8
mov esi, dword [ecx + 8]
push ecx
push 4
mov ecx, edi
call fcn.7730614a
mov ecx, esi
lea eax, [esi - 8]
neg ecx
sbb ecx, ecx
and ecx, eax
jne 0x773066c6
mov ecx, dword [edi + 0x64]
lea eax, [ecx - 8]
jmp 0x773066fa
mov esi, dword [ecx + 8]
push ecx
push 5
mov ecx, edi
call fcn.7730614a
mov ecx, esi
lea eax, [esi - 8]
neg ecx
sbb ecx, ecx
and ecx, eax
jne 0x773066e8
cmp dword [esp + 0x1c], ecx
je 0x77306740
push 3
mov edx, ebx
pop esi
mov ecx, dword [edx]
lea eax, [ecx - 8]
jmp 0x77306729
cmp dword [ecx + 0xec], 0
je 0x77306721
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 0x77306714
add edx, 8
sub esi, 1
jne 0x7730670d
mov ecx, edi
call fcn.7733df38
mov eax, dword [edi + 0x32c]
mov esi, dword [esp + 0x10]
mov dword [edi + 0x328], eax
cmp eax, esi
jl 0x77306564
mov ecx, edi
call fcn.77306be2
add eax, dword [edi + 0x320]
mov dword [esp + 0x2c], eax
adc edx, dword [edi + 0x324]
xor esi, esi
mov dword [esp + 0x1c], edx
lea ebx, [edi + esi*8]
mov ecx, dword [ebx + 0x3c]
lea eax, [ecx - 8]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x773067dd
imul edx, dword [edi + 0x334], 0x2710
xor eax, eax
add edx, dword [esp + 0x2c]
adc eax, dword [esp + 0x1c]
add edx, 0x1e8480
adc eax, 0
cmp dword [ecx + 0x9c], eax
jg 0x773067dd
jl 0x773067b5
cmp dword [ecx + 0x98], edx
ja 0x773067dd
test esi, esi
jne 0x773067cb
lea ecx, [edi + 0x3c]
call fcn.77304b00
push eax
mov ecx, edi
call fcn.77307099
jmp 0x77306775
lea ecx, [ebx + 0x3c]
call fcn.77304b00
push eax
mov ecx, edi
call fcn.77307645
jmp 0x77306775
inc esi
cmp esi, 2
jbe 0x77306775
mov edi, dword [esp + 0x30]
push 3
pop ecx
mov dword [esp + 0x1c], ecx
mov esi, dword [edi]
lea eax, [esi - 8]
neg esi
sbb esi, esi
and esi, eax
je 0x77306856
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
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 0x7730684c
jl 0x77306832
cmp dword [esi + 0xa0], ecx
jae 0x7730684c
lea eax, [esi + 8]
mov ecx, edi
push eax
call fcn.773033f2
mov ecx, esi
call fcn.77317d15
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov esi, ebx
test esi, esi
jne 0x77306814
mov ecx, dword [esp + 0x1c]
add edi, 8
sub ecx, 1
mov dword [esp + 0x1c], ecx
jne 0x773067ee
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 0x773068d6
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
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 0x773068cc
jl 0x773068b2
cmp dword [esi + 0xa0], ecx
jae 0x773068cc
lea eax, [esi + 8]
mov ecx, edi
push eax
call fcn.773033f2
mov ecx, esi
call fcn.77317d15
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
mov esi, ebx
test esi, esi
jne 0x77306894
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 0x77306927
mov edx, dword [esp + 0x20]
sub edx, dword [edi + 0xf8]
mov eax, dword [esp + 0x14]
sbb eax, dword [edi + 0xfc]
cmp dword [ecx + 0x24], eax
jg 0x7730692d
jl 0x77306918
cmp dword [ecx + 0x20], edx
jae 0x7730692d
mov ecx, ebx
call fcn.7731c1e6
push eax
mov ecx, edi
call fcn.7730c1ff
mov ecx, dword [ebx]
test ecx, ecx
jne 0x773068f8
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 0x77306949
push eax
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
jmp 0x7730694f
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
cmp dword [edi + 0x358], 0
lea esi, [edi + 0x24c]
je 0x773064c4
and dword [edi + 0x358], 0
cmp byte [edi + 0x380], 0
je 0x77306981
mov ecx, edi
call fcn.77305274
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret