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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
mov eax, dword [0x6a3b20]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov dword [esp + 0x48], ebx
cmp dword [ebx + 0x28], edi
je 0x576752
xor eax, eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x94], edi
cmp eax, edi
je 0x5762d7
test byte [eax + 8], 0x20
je 0x5762d7
mov eax, dword [ebx + 0x28]
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], edi
mov edx, dword [eax]
mov edx, dword [edx + 0x1c]
push ecx
push eax
call edx
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x5762d7
push eax
lea ecx, [esp + 0xa8]
call dword [0x5a73d8]
mov ecx, dword [eax]
mov dword [esp + 0x94], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x98], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x9c], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [ebx + 0x28]
mov dword [esp + 0xa0], edx
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x30]
call eax
lea ecx, [esp + 0x94]
push ecx
lea edx, [esp + 0x28]
push edx
mov ecx, 0x6a5168
call fcn.00570fd0
push eax
lea ecx, [ebx + 0x10]
call fcn.00571020
lea ecx, [esp + 0x24]
call fcn.00570e60
mov eax, dword [ebx + 0x10]
cmp dword [eax + 4], edi
jne 0x576752
mov eax, dword [ebx + 0x28]
mov ecx, dword [0x5a79e0]
mov dword [esp + 0x1c], ecx
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0xc]
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x54], edi
call eax
xor esi, esi
mov dword [esp + 0x80], eax
mov dword [esp + 0x14], esi
cmp eax, edi
jbe 0x5766f3
mov edi, dword [0x5a7a18]
mov eax, dword [ebx + 0x28]
mov ecx, dword [eax]
lea edx, [esp + 0x54]
push edx
push esi
push eax
mov eax, dword [ecx + 0x14]
call eax
cmp dword [esp + 0x54], 0
jne 0x5766df
mov eax, dword [ebx + 0x28]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], 0
mov ecx, dword [eax]
push esi
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [esp + 0x10], 0
je 0x5766df
lea ecx, [esp + 0x20]
call dword [0x5a7b58]
mov eax, dword [ebx + 0x28]
mov ecx, dword [eax]
push 0
push 0
push 0
lea edx, [esp + 0x40]
push edx
push esi
push eax
mov eax, dword [ecx + 0x24]
call eax
test eax, eax
jne 0x5763c9
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x5c]
push ecx
push 0xffffffffffffffff
push edx
lea eax, [esp + 0x88]
push eax
call dword [0x5a7c34]
add esp, 0xc
mov ecx, eax
call dword [0x5a7af0]
push eax
lea ecx, [esp + 0x24]
call dword [0x5a7b44]
lea ecx, [esp + 0x5c]
call dword [0x5a7d74]
lea ecx, [esp + 0x7c]
call dword [0x5a7d90]
mov ecx, dword [esp + 0x34]
push ecx
call dword [0x5a7228]
jmp 0x57643d
mov eax, dword [esp + 0x50]
inc eax
push 0xa
push eax
lea edx, [esp + 0x94]
push edx
mov dword [esp + 0x5c], eax
call edi
add esp, 0xc
push 0xffffffffffffffff
push str.enum
lea ecx, [esp + 0x6c]
mov esi, eax
call dword [0x5a7728]
push esi
mov ecx, eax
call dword [0x5a7a64]
push eax
lea ecx, [esp + 0x40]
call dword [0x5a7b14]
lea ecx, [esp + 0x64]
call dword [0x5a7d74]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x24]
call dword [0x5a78b4]
lea ecx, [esp + 0x3c]
call dword [0x5a7d74]
lea ecx, [esp + 0x8c]
call dword [0x5a7d74]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], 0
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x5766bc
xor esi, esi
xor ecx, ecx
mov dword [esp + 0x24], esi
cmp cx, word [eax + 0x2e]
jae 0x5766b8
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], 0
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
push esi
push eax
call edx
mov eax, dword [esp + 0x28]
test eax, eax
je 0x576696
cmp dword [eax + 0x20], 2
jne 0x576696
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 8]
mov esi, dword [eax]
lea ecx, [esp + 0x18]
mov dword [esp + 0x78], edx
call dword [0x5a7b58]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x6c]
push edx
push 1
lea edx, [esp + 0x54]
push edx
push esi
push eax
mov eax, dword [ecx + 0x1c]
call eax
cmp dword [esp + 0x6c], 0
je 0x576531
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x84]
push ecx
push 0xffffffffffffffff
push edx
lea eax, [esp + 0x80]
push eax
call dword [0x5a7c34]
add esp, 0xc
mov ecx, eax
call dword [0x5a7af0]
push eax
lea ecx, [esp + 0x1c]
call dword [0x5a7b44]
lea ecx, [esp + 0x84]
call dword [0x5a7d74]
lea ecx, [esp + 0x74]
call dword [0x5a7d90]
mov ecx, dword [esp + 0x4c]
push ecx
call dword [0x5a7228]
jmp 0x5765a1
mov ebx, dword [esp + 0x44]
push 0xa
lea edx, [esp + 0x5c]
push ebx
push edx
call edi
add esp, 0xc
push 0xffffffffffffffff
push str.value
lea ecx, [esp + 0x98]
mov esi, eax
call dword [0x5a7728]
push esi
mov ecx, eax
call dword [0x5a7a64]
push eax
lea ecx, [esp + 0x3c]
call dword [0x5a7b14]
lea ecx, [esp + 0x90]
call dword [0x5a7d74]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
call dword [0x5a78b4]
inc ebx
lea ecx, [esp + 0x38]
mov dword [esp + 0x44], ebx
call dword [0x5a7d74]
lea ecx, [esp + 0x58]
call dword [0x5a7d74]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x64]
push edx
call dword [0x5a7324]
add esp, 8
push 0
push eax
lea ecx, [esp + 0x24]
call fcn.00567b40
mov eax, dword [eax]
cmp eax, dword [esp + 0x1c]
lea ecx, [esp + 0x60]
setne bl
call dword [0x5a7d90]
test bl, bl
je 0x576602
mov eax, dword [esp + 0x40]
inc eax
push 0xa
push eax
lea ecx, [esp + 0x70]
push ecx
mov dword [esp + 0x4c], eax
call edi
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
call dword [0x5a7a64]
lea ecx, [esp + 0x68]
call dword [0x5a7d74]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x74]
push eax
call dword [0x5a7324]
add esp, 8
lea ecx, [esp + 0x33]
push ecx
push eax
lea edx, [esp + 0x90]
push edx
lea ecx, [esp + 0x28]
call fcn.0056d420
lea ecx, [esp + 0x70]
call dword [0x5a7d90]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xa8]
call dword [0x5a7b14]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0xa8], ecx
mov ecx, dword [esp + 0x48]
lea edx, [esp + 0xa4]
push edx
lea eax, [esp + 0x24]
push eax
add ecx, 0x10
call fcn.00571a40
mov ecx, eax
call fcn.0056ad50
lea ecx, [esp + 0xa4]
call dword [0x5a7d74]
lea ecx, [esp + 0x18]
call dword [0x5a7d74]
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x48]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x54]
push ecx
call eax
mov eax, dword [esp + 0x2c]
movzx ecx, word [eax + 0x2e]
inc esi
mov dword [esp + 0x24], esi
cmp esi, ecx
jb 0x576474
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x4c]
push ecx
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x20]
call dword [0x5a7d74]
inc esi
mov dword [esp + 0x14], esi
cmp esi, dword [esp + 0x80]
jb 0x576313
xor edi, edi
lea ecx, [esp + 0x94]
call dword [0x5a73c0]
test al, al
jne 0x576722
add ebx, 0x10
push ebx
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x90]
push ecx
mov ecx, 0x6a5168
call fcn.00576150
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 8]
add eax, 8
cmp ecx, edi
je 0x576743
cmp ecx, 0xffffffff
je 0x576752
or edx, 0xffffffff
lock xadd dword [eax], edx
setne al
test al, al
jne 0x576752
mov ecx, dword [esp + 0x1c]
push 0x5688b0
call dword [0x5a7994]
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0058077e
mov esp, ebp
pop ebp
ret