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

Disassembly:
sub esp, 0xa8
mov eax, dword [0x6a3b20]
xor eax, esp
mov dword [esp + 0xa4], eax
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
xor ebx, ebx
push edi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x24], ebx
cmp eax, ebx
je 0x5702d3
test byte [eax + 8], 1
je 0x5702d3
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
push 0x65a3c8
push eax
mov eax, dword [ecx]
call eax
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x5702d3
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x57014e
mov dword [esp + 0x18], 1
mov dword [esp + 0x10], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push eax
call edx
mov eax, dword [0x5a7c68]
mov ebp, dword [0x5a7728]
mov dword [esp + 0x1c], eax
jmp 0x56fd72
xor ebx, ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x56fd82
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x18], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
cmp dword [esp + 0x18], ebx
je 0x570124
cmp eax, ebx
jne 0x570124
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x94]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esp + 0xa8]
call dword [0x5a73d8]
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 8]
lea ebx, [eax + edx*4 + 0x10]
lea edi, [eax + ecx*4 + 0x10]
cmp edi, ebx
je 0x56fe11
mov ecx, dword [edi]
lea edx, [esp + 0xa4]
push edx
call dword [0x5a737c]
test al, al
jne 0x570122
add edi, 4
cmp edi, ebx
jne 0x56fdf2
mov eax, dword [esi + 0x18]
test byte [eax + 8], 4
je 0x570006
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0xac]
call dword [0x5a77c8]
mov ecx, eax
call dword [0x5a7ad8]
lea ecx, [esp + 0x54]
call dword [0x5a7d90]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x78]
call dword [0x5a7bf0]
mov ecx, str._Default
push ecx
mov eax, 8
push eax
lea ecx, [esp + 0x4c]
call dword [0x5a7d70]
mov ecx, str._Interface_
push ecx
mov eax, 0xb
push eax
lea ecx, [esp + 0x54]
call dword [0x5a7d70]
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x38]
call dword [0x5a7cbc]
mov edi, dword [0x5a7cc0]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x38]
call edi
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x34]
call dword [0x5a7cbc]
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x34]
call edi
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x90]
push edx
lea ecx, [esi + 0x30]
call dword [0x5a7bf4]
mov ecx, eax
call dword [0x5a7bf8]
push eax
lea ecx, [esp + 0x18]
call dword [0x5a7c74]
lea ecx, [esp + 0x58]
call dword [0x5a7d90]
mov edi, dword [0x5a7bec]
lea ecx, [esp + 0x84]
call edi
lea ecx, [esp + 0x30]
call dword [0x5a7d90]
lea ecx, [esp + 0x34]
call dword [0x5a7d90]
lea ecx, [esp + 0x4c]
call dword [0x5a7d90]
lea ecx, [esp + 0x44]
call dword [0x5a7d90]
lea ecx, [esp + 0x74]
call edi
mov eax, dword [esp + 0x48]
inc eax
push 0xa
push eax
mov dword [esp + 0x50], eax
lea eax, [esp + 0x58]
push eax
call dword [0x5a7a18]
add esp, 0xc
push 0xffffffffffffffff
push str.Event_Interface
lea ecx, [esp + 0x64]
mov edi, eax
call ebp
push edi
mov ecx, eax
call dword [0x5a7a64]
push eax
lea ecx, [esp + 0x24]
call dword [0x5a7b14]
lea ecx, [esp + 0x5c]
call dword [0x5a7d74]
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x18]
call dword [0x5a7af0]
mov ecx, eax
call dword [0x5a74b8]
lea ecx, [esp + 0x20]
mov edi, eax
call dword [0x5a74b8]
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x48]
mov ebx, eax
call ebp
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x44]
call ebp
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x78]
push ecx
mov ecx, esi
call fcn.0056ab30
lea ecx, [esp + 0x3c]
call dword [0x5a7d74]
lea ecx, [esp + 0x40]
call dword [0x5a7d74]
lea ecx, [esp + 0x20]
call dword [0x5a7d74]
lea ecx, [esp + 0x50]
call dword [0x5a7d74]
lea ecx, [esp + 0x38]
call dword [0x5a7d74]
lea ecx, [esp + 0x14]
call dword [0x5a7d90]
lea edx, [esp + 0x94]
push 0x65a468
push edx
call fcn.00564090
add esp, 8
test eax, eax
je 0x5700bc
mov edi, dword [esi + 0x18]
mov eax, dword [edi + 4]
cmp dword [eax + 0xc], 0
je 0x570117
push 0
lea ecx, [esi + 0x40]
push ecx
lea ecx, [edi + 4]
call fcn.005677c0
mov eax, dword [eax]
cmp eax, dword [edi + 4]
je 0x570117
mov edi, dword [eax + 0x18]
test edi, edi
je 0x570117
mov edx, dword [esp + 0x98]
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0xa0]
mov ebx, dword [esp + 0x94]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x10]
mov dword [edi + 8], edx
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x6c], ecx
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], eax
mov eax, dword [edi + 8]
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], edx
mov ecx, dword [eax]
lea edx, [edi + 0x1c]
push edx
push edi
push eax
mov eax, dword [ecx + 0x14]
call eax
jmp 0x570117
cmp dword [esi + 0x28], 0
mov dword [esp + 0x28], 0
je 0x570117
mov eax, dword [esi + 0x28]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x98]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
cmp dword [esp + 0x28], 0
je 0x570117
lea ecx, [esp + 0xa4]
push ecx
lea ecx, [esp + 0x20]
call fcn.0056aa20
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
push edx
push eax
mov ecx, esi
call fcn.0056f7c0
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [esp + 0x18], 0
jne 0x56fd70
xor ebx, ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x570134
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x1c]
call fcn.00568ff0
jmp 0x5702c7
cmp dword [esi + 0x24], ebx
je 0x5702c7
mov eax, dword [esi + 0x24]
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x5702c7
xor ecx, ecx
xor ebp, ebp
cmp cx, word [eax + 0x30]
jae 0x5702bb
mov eax, dword [esi + 0x24]
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], ebx
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
push ebp
push eax
call edx
test byte [esp + 0x20], 2
je 0x5702aa
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
lea edx, [esp + 0x38]
push edx
push ebp
push eax
mov eax, dword [ecx + 0x20]
call eax
test eax, eax
jne 0x5702aa
mov eax, dword [esi + 0x24]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x38]
call eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x5702aa
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x57029e
mov eax, dword [esp + 0x24]
lea edi, [esp + 0x18]
push edi
mov dword [esp + 0x1c], ebx
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x10]
call eax
mov edi, dword [esp + 0x18]
cmp edi, ebx
je 0x57028d
mov ecx, dword [esp + 0x14]
push 0x65a468
push ecx
call fcn.00564090
add esp, 8
test eax, eax
je 0x570274
mov ecx, dword [esi + 0x18]
lea edx, [esi + 0x40]
push edx
add ecx, 4
call fcn.005685e0
cmp eax, ebx
je 0x5702aa
mov edi, dword [esp + 0x14]
mov ecx, dword [edi]
sub esp, 0x10
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [edi + 4]
mov dword [edx + 4], ecx
mov ecx, dword [edi + 8]
mov dword [edx + 8], ecx
mov ecx, dword [edi + 0xc]
mov dword [edx + 0xc], ecx
mov edx, dword [esp + 0x28]
push edx
mov ecx, eax
call fcn.00564260
jmp 0x5702aa
mov eax, dword [esp + 0x10]
push edi
push eax
mov ecx, esi
call fcn.0056f7c0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x4c]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
movzx ecx, word [eax + 0x30]
inc ebp
cmp ebp, ecx
jl 0x570185
mov esi, dword [esi + 0x24]
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x4c]
push esi
call eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0058077e
add esp, 0xa8
ret