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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa4
test byte [ebp + 0x24], 0x40
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x18], esi
je 0x77328967
xor eax, eax
jmp 0x7732931b
mov eax, dword [ebp + 0x24]
xor ecx, ecx
mov ebx, dword [ebp + 0x28]
and eax, 2
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xa0], eax
je 0x77328a05
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x10]
adc ecx, dword [ebp + 0x20]
xor edi, edi
mov dword [ebp - 0x28], edi
cmp dword [ebp + 0x34], edi
je 0x773289b1
mov esi, dword [ebx]
lea edx, [ebp - 0x28]
push edx
push ecx
push eax
mov ecx, dword [esi + 0x34]
push ebx
call dword [0x77331158]
call dword [esi + 0x34]
jmp 0x773289b4
mov dword [ebp - 0x28], eax
mov esi, dword [ebx]
lea eax, [ebp - 0x24]
push eax
push 0x773027e4
push ebx
mov ecx, dword [esi]
mov dword [ebp - 0x24], edi
call dword [0x77331158]
call dword [esi]
test eax, eax
js 0x773289f4
mov ecx, dword [ebp - 0x24]
push 2
push dword [ebp - 0x28]
push dword [ebp + 0x30]
call fcn.7730c000
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x77331158]
call esi
mov edi, dword [ebp + 8]
xor ecx, ecx
mov esi, dword [ebp - 0x18]
mov byte [edi + 0x444], 1
jmp 0x77328a08
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x24]
and edx, 1
and eax, 6
mov dword [ebp - 0x38], edx
mov dword [ebp - 8], eax
je 0x77328a28
mov dword [edi + 0x418], ecx
mov dword [edi + 0x41c], ecx
test byte [esi + 0x34], 1
je 0x77328a79
mov eax, dword [edi + 0x418]
mov ecx, dword [edi + 0x41c]
or eax, ecx
je 0x77328a62
cmp dword [ebp + 0x10], ecx
jg 0x77328a76
jl 0x77328a50
mov eax, dword [ebp + 0xc]
cmp eax, dword [edi + 0x418]
ja 0x77328a76
cmp dword [ebp + 0x18], ecx
jl 0x77328a76
jg 0x77328a62
mov eax, dword [ebp + 0x14]
cmp eax, dword [edi + 0x418]
jbe 0x77328a76
push dword [ebp + 0x34]
mov ecx, esi
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push edi
push ebx
call fcn.77329996
jmp 0x77328a85
mov eax, dword [ebp - 8]
test eax, eax
je 0x77328a8b
push edi
mov ecx, esi
call fcn.773298f1
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x10], eax
xor ebx, ebx
test byte [ebp + 0x24], 0x1b
je 0x77328aab
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x77328aab
mov eax, dword [ecx + 4]
or dword [ecx], 0xffffffff
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], ebx
mov ecx, dword [ecx + 0x10]
jmp 0x77328a96
mov eax, dword [edi + 8]
cmp eax, dword [esi + 0x48]
je 0x77328b5b
mov eax, dword [edi + 0x43c]
test eax, eax
je 0x77328b02
xor edx, edx
cmp dword [edi + 0x440], edx
jbe 0x77328afa
mov edx, eax
mov ecx, dword [eax + ebx*4]
test ecx, ecx
je 0x77328aec
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x77331158]
call esi
mov eax, dword [edi + 0x43c]
mov edx, eax
inc ebx
cmp ebx, dword [edi + 0x440]
jb 0x77328acd
mov esi, dword [ebp - 0x18]
mov eax, edx
push eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, dword [esi + 0x78]
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.77320b52
mov dword [edi + 0x43c], eax
pop ecx
test eax, eax
jne 0x77328b2e
mov eax, 0x8007000e
jmp 0x7732931b
mov eax, dword [esi + 0x78]
xor ebx, ebx
mov ecx, ebx
test eax, eax
je 0x77328b4a
mov eax, dword [edi + 0x43c]
mov dword [eax + ecx*4], ebx
inc ecx
mov eax, dword [esi + 0x78]
cmp ecx, eax
jb 0x77328b39
push edi
mov ecx, esi
mov dword [edi + 0x440], eax
call fcn.7732877d
xor edx, edx
inc edx
test edx, edx
je 0x77328b7f
cmp dword [ebp - 8], 0
push dword [ebp + 0x34]
push ecx
push ecx
je 0x77328b6e
push 1
jmp 0x77328b6f
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push ecx
push ecx
mov ecx, esi
call fcn.77329322
mov eax, dword [ebp + 0x2c]
lea ecx, [ebp - 0x2c]
push ecx
push 0x77302564
push eax
mov esi, dword [eax]
mov ecx, dword [esi]
call dword [0x77331158]
call dword [esi]
test eax, eax
jns 0x77328ba3
mov esi, ebx
mov dword [ebp - 0x2c], esi
jmp 0x77328ba6
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
mov edx, ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], ebx
mov eax, dword [ecx + 0x40]
mov dword [ebp - 0x44], eax
cmp dword [ecx + 0x38], ebx
jbe 0x77329304
mov dword [ebp - 0x70], ebx
test eax, eax
je 0x77328bd7
mov ebx, dword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 0x4c], ebx
xor ebx, ebx
mov dword [ebp - 0x70], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x773292e7
cmp dword [eax + edx*4], ebx
je 0x773292e7
cmp dword [ebp + 0x34], 0
mov dword [ebp - 0x30], ebx
mov ebx, dword [eax + edx*4]
je 0x77328bfe
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
jmp 0x77328c09
mov eax, dword [ebx + 0x28]
cdq
mov ecx, eax
mov eax, edx
mov edx, dword [ebp - 0x38]
cmp eax, dword [ebp + 0x18]
jg 0x773292e4
jl 0x77328c1d
cmp ecx, dword [ebp + 0x14]
jae 0x773292e4
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x77328c35
push edx
push eax
mov ecx, edi
call fcn.7732714b
mov ecx, eax
and ecx, dword [ebx + 0x10]
mov dword [ebp - 0x30], ecx
xor eax, eax
mov dword [ebp - 0x48], eax
cmp dword [ebp + 0x34], eax
je 0x77328c8b
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x48]
mov eax, dword [ebp + 0x28]
push ecx
push dword [ebp + 0x20]
mov esi, dword [eax]
push dword [ebp + 0x1c]
push eax
mov ecx, dword [esi + 0x34]
call dword [0x77331158]
call dword [esi + 0x34]
mov edx, dword [ebp + 0x28]
lea eax, [ebp - 0x34]
mov ecx, dword [ebx]
add ecx, dword [ebp + 0x1c]
push eax
mov eax, dword [ebx + 4]
adc eax, dword [ebp + 0x20]
mov esi, dword [edx]
push eax
push ecx
push edx
mov ecx, dword [esi + 0x34]
call dword [0x77331158]
call dword [esi + 0x34]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x48]
sub ecx, eax
jmp 0x77328c94
mov ecx, dword [ebx + 0x28]
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x48], eax
mov esi, dword [ebp + 0x28]
xor edx, edx
push edx
lea edx, [ebp - 0x40]
push edx
lea edx, [ebp - 0x94]
push edx
push esi
push dword [edi + 0xc]
push eax
push ecx
mov ecx, dword [ebp - 0x18]
push dword [ebp - 0x4c]
lea ecx, [ecx + 0x4c]
call fcn.773209af
cmp dword [ebp - 0x94], 0
jne 0x773292c4
cmp dword [ebp - 0x30], 0
je 0x773292c4
mov edx, dword [edi + 0x448]
xor eax, eax
mov dword [ebp - 0x74], eax
mov ecx, esi
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x40]
call fcn.7732b657
mov edx, eax
mov dword [ebp - 0x10], edx
test edx, edx
js 0x773292c4
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x773292bd
xor edx, edx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], edx
mov esi, dword [eax]
push ecx
push 0x773026e4
push eax
mov ecx, dword [esi]
call dword [0x77331158]
call dword [esi]
mov dword [ebp - 0x10], eax
test eax, eax
js 0x773292a8
push 0x7732e144
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
mov eax, dword [0x7732e164]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x7732928a
mov eax, dword [ebx + 0x30]
mov esi, dword [ebp + 0x28]
mov edi, dword [ebp - 0x30]
cmp dword [edi], eax
jne 0x77328d82
cmp dword [edi + 0x20], esi
jne 0x77328d82
mov ecx, dword [ebp - 0x28]
cmp dword [edi + 0x1c], ecx
jne 0x77328d82
xor eax, eax
cmp dword [ebx + 0x3c], eax
je 0x77328d8b
push dword [edi + 0x14]
mov ecx, ebx
call fcn.77326e5e
test al, al
jne 0x77328d89
mov eax, dword [ebx + 0x30]
mov edi, dword [edi + 0x24]
test edi, edi
jne 0x77328d59
xor eax, eax
mov dword [ebp - 0x30], edi
test edi, edi
mov edi, dword [ebp + 8]
je 0x7732928a
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 4]
mov dword [ebp - 0x64], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x14], eax
mov eax, esi
push ecx
push 0x58
push eax
mov esi, dword [eax]
mov ecx, dword [esi + 0x40]
call dword [0x77331158]
call dword [esi + 0x40]
test eax, eax
js 0x7732928a
cmp dword [ebp + 0x34], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x40]
mov dword [eax + 0x28], 0xc
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x30]
mov dword [eax + 0x1c], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [edi + 0xc]
mov dword [eax + 0x30], ecx
je 0x77328e9a
push dword [ebp - 8]
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 4]
neg ecx
push dword [ebp - 0x1c]
mov esi, dword [ebx]
mov dword [ebp - 0x20], eax
call fcn.773287e6
sub dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x20]
sbb dword [ebp - 0x14], edx
cmp ecx, dword [ebp + 0x10]
jg 0x77328e62
mov eax, dword [ebp + 0xc]
jl 0x77328e34
cmp esi, eax
jae 0x77328e62
mov edx, eax
mov eax, dword [ebp + 0x10]
sub edx, esi
sbb eax, ecx
mov ecx, dword [ebx + 0xc]
push eax
push edx
call fcn.773287e6
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
adc dword [ebp - 8], edx
sub esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
sbb eax, dword [ebp + 0x10]
add dword [ebp - 0xc], esi
mov esi, dword [ebp + 0xc]
adc dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
add esi, dword [ebp + 0x1c]
adc ecx, dword [ebp + 0x20]
mov dword [eax + 8], esi
mov esi, dword [ebp - 0xc]
mov dword [eax + 0xc], ecx
xor ecx, ecx
mov eax, dword [ebp - 4]
push ecx
push 0x2710
push dword [ebp - 0x14]
mov dword [eax + 0x14], 0x41
mov eax, dword [ebp - 4]
push esi
mov dword [eax + 0x48], ecx
call sub.ntdll.dll__alldiv
jmp 0x773290cb
mov edi, dword [ebp + 0x28]
lea ecx, [ebp - 0x80]
xor eax, eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov eax, dword [ebx]
mov esi, dword [edi]
push ecx
mov dword [ebp - 0x20], eax
add eax, dword [ebp + 0x1c]
mov ecx, dword [esi + 0x30]
push eax
push edi
call dword [0x77331158]
call dword [esi + 0x30]
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x6c]
mov esi, dword [edi]
xor edx, edx
add ecx, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x7c]
adc eax, dword [ebp - 8]
push eax
push ecx
mov ecx, dword [esi + 0x34]
push edi
mov dword [ebp - 0x6c], edx
call dword [0x77331158]
call dword [esi + 0x34]
mov esi, dword [ebp - 0x20]
mov eax, esi
cdq
mov ecx, eax
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x9c], ecx
add ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x98], ecx
mov ecx, dword [ebp - 0x3c]
adc ecx, dword [ebp + 0x20]
cdq
cmp edx, ecx
jl 0x77328f3a
jg 0x77328f19
cmp eax, dword [ebp - 0x98]
jbe 0x77328f3a
mov ecx, dword [ebx + 0xc]
neg ecx
sub eax, dword [ebp - 0x9c]
sbb edx, dword [ebp - 0x3c]
sub eax, dword [ebp + 0x1c]
sbb edx, dword [ebp + 0x20]
push edx
push eax
call fcn.773287e6
sub dword [ebp - 0xc], eax
sbb dword [ebp - 0x14], edx
mov eax, dword [ebp + 0xc]
cmp esi, eax
jge 0x7732903c
mov esi, dword [edi]
xor ecx, ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x3c], ecx
lea ecx, [ebp - 0x58]
push ecx
mov ecx, dword [ebp + 0x1c]
lea eax, [ecx + eax*2]
mov ecx, dword [esi + 0x30]
push eax
push edi
call dword [0x77331158]
call dword [esi + 0x30]
mov esi, dword [edi]
lea eax, [ebp - 0x60]
push eax
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x20]
add eax, dword [ebp + 0x1c]
mov ecx, dword [esi + 0x30]
push eax
push edi
call dword [0x77331158]
call dword [esi + 0x30]
mov ecx, dword [ebp - 0x58]
sub ecx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x54]
sbb eax, dword [ebp - 0x5c]
push eax
push ecx
mov ecx, dword [ebx + 0xc]
call fcn.773287e6
add dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0xc]
adc dword [ebp - 8], edx
xor eax, eax
mov esi, dword [edi]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x88]
push eax
mov eax, dword [ebx + 0x20]
add eax, ecx
mov dword [ebp - 0x20], ecx
add eax, dword [ebp + 0x1c]
mov ecx, dword [esi + 0x30]
push eax
push edi
call dword [0x77331158]
call dword [esi + 0x30]
mov ecx, dword [ebx + 0xc]
lea eax, [ebp - 0x3c]
mov edi, dword [edi]
neg ecx
push eax
push ecx
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
call fcn.773287e6
mov esi, dword [ebp - 0x88]
sub esi, dword [ebp - 0x58]
pop ecx
mov ecx, dword [ebp - 0x84]
sbb ecx, dword [ebp - 0x54]
add esi, dword [ebp - 0x60]
adc ecx, dword [ebp - 0x5c]
sub esi, eax
sbb ecx, edx
push ecx
mov ecx, dword [edi + 0x34]
push esi
mov esi, dword [ebp + 0x28]
push esi
call dword [0x77331158]
call dword [edi + 0x34]
mov eax, dword [ebp - 0x3c]
cdq
mov ecx, edx
sub eax, dword [ebp + 0xc]
sbb ecx, dword [ebp + 0x10]
sub eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc], eax
sbb ecx, dword [ebp + 0x20]
mov dword [ebp - 0x14], ecx
jmp 0x7732903e
mov esi, edi
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 0x20]
add edi, dword [ebp + 0x1c]
mov dword [eax + 0x10], edi
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 2
mov ecx, dword [ebx]
mov eax, dword [ebp - 4]
sub ecx, dword [ebx + 0x28]
mov dword [eax + 0x48], ecx
xor eax, eax
mov esi, dword [esi]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x90]
push eax
mov ecx, dword [esi + 0x30]
push edi
mov edi, dword [ebp + 0x28]
push edi
call dword [0x77331158]
call dword [esi + 0x30]
mov esi, dword [edi]
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x20]
add eax, dword [ebp + 0x1c]
mov ecx, dword [esi + 0x30]
push eax
push edi
call dword [0x77331158]
call dword [esi + 0x30]
mov ecx, dword [ebp - 0x68]
sub ecx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x64]
sbb eax, dword [ebp - 0x8c]
xor edx, edx
push edx
push 0x2710
push eax
push ecx
call sub.ntdll.dll__alldiv
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 0xc]
xor ecx, ecx
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], edx
cmp edx, ecx
jl 0x77329274
jg 0x773290e5
cmp eax, ecx
jbe 0x77329274
cmp dword [ebx + 0x48], ecx
je 0x77329105
test byte [ebp + 0x24], 4
je 0x77329105
cmp edx, ecx
jl 0x77329274
jg 0x77329105
cmp eax, 0x96
jb 0x77329274
test byte [ebx + 0x2c], 0x20
je 0x77329117
cmp dword [ebp - 0xa0], ecx
jne 0x77329274
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0x38], ecx
mov ecx, dword [ebp - 8]
mov dword [eax + 0x3c], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x40], esi
mov dword [eax + 0x44], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebx + 8]
add ecx, dword [eax + 0x30]
mov eax, dword [ebp - 4]
add ecx, dword [ebp - 0x70]
mov dword [eax + 0x4c], ecx
cmp word [ebx + 0x38], dx
je 0x77329164
movzx esi, word [ebx + 0x38]
call dword [sym.imp.msvcrt.dll_rand]
cdq
lea ecx, [esi + esi]
idiv ecx
mov eax, dword [ebp - 4]
sub edx, esi
add dword [eax + 0x4c], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebx + 0xc]
mov dword [eax + 0x50], ecx
xor eax, eax
cmp word [ebx + 0x3a], ax
je 0x7732918d
movzx esi, word [ebx + 0x3a]
call dword [sym.imp.msvcrt.dll_rand]
cdq
lea ecx, [esi + esi]
idiv ecx
mov eax, dword [ebp - 4]
sub edx, esi
add dword [eax + 0x50], edx
mov eax, dword [ebp - 4]
mov cl, byte [ebx + 0x2c]
mov byte [eax + 0x54], cl
xor eax, eax
mov ecx, dword [ebx + 0x4c]
mov dword [ebp - 0x24], eax
cmp ecx, 0xffffffff
jne 0x773291b8
mov dword [ebp - 0x10], 0x88781162
mov ebx, dword [ebp + 0x28]
push dword [ebp - 4]
mov eax, dword [ebx]
push ebx
jmp 0x7732927d
cmp byte [edi + 0x444], al
jne 0x773291ed
mov eax, dword [edi + 0x43c]
mov ecx, dword [eax + ecx*4]
test ecx, ecx
je 0x773291ed
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebx + 0x18]
jne 0x773291ed
mov eax, dword [ebp - 8]
cmp eax, dword [ebx + 0x1c]
jne 0x773291ed
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x40], eax
jne 0x773291ed
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], ecx
jmp 0x7732921b
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x74]
mov eax, dword [ebp - 4]
push dword [ebp - 0x78]
push ebx
push dword [eax + 0x3c]
push dword [eax + 0x38]
mov eax, dword [ebp - 0x30]
push dword [eax]
push dword [ebp - 0x28]
push edi
push dword [eax + 0x14]
call fcn.773274c1
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
test eax, eax
js 0x773291aa
mov eax, dword [ebp - 4]
mov dword [eax + 0x34], ecx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 4]
mov ecx, esi
call dword [0x77331158]
call esi
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x77329252
mov eax, dword [ecx]
push dword [ebp - 4]
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x77331158]
call esi
mov ebx, dword [ebp + 0x28]
push dword [ebp - 4]
push ebx
mov eax, dword [ebx]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x77331158]
call esi
mov dword [ebp - 0x10], eax
test eax, eax
jns 0x7732928a
jmp 0x773291ad
mov ecx, dword [ebp + 0x28]
push dword [ebp - 4]
push ecx
mov eax, dword [ecx]
mov esi, dword [eax + 0x44]
mov ecx, esi
call dword [0x77331158]
call esi
push 0x7732e144
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x77331158]
call esi
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x77331158]
call esi
jmp 0x773292c4
mov dword [ebp - 0x10], 0x88781161
mov edx, dword [ebp - 0x38]
xor ebx, ebx
mov ecx, dword [edi + 4]
mov eax, dword [ecx + edx*4]
mov eax, dword [eax + 0x50]
mov dword [ecx + edx*4], eax
mov eax, dword [edi + 4]
mov esi, dword [ebp - 0x2c]
cmp dword [eax + edx*4], ebx
jne 0x77328beb
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x773292f4
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x44], eax
inc edx
push 0
mov dword [ebp - 0x38], edx
pop ebx
cmp edx, dword [ecx + 0x38]
jb 0x77328bc3
test esi, esi
je 0x77329318
mov eax, dword [esi]
push esi
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x77331158]
call esi
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0x30