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

Disassembly:
sub esp, 0x30
mov edx, dword [esp + 0x3c]
push ebx
mov ebx, dword [esp + 0x38]
mov eax, dword [ebx + 0x44]
mov dword [esp + 0x14], eax
add eax, 1
mov dword [ebx + 0x44], eax
xor eax, eax
test edx, edx
push ebp
sete al
push esi
push edi
mov edi, dword [esp + 0x48]
test word [edi + 2], 0x800
mov dword [esp + 0x18], 0
mov dword [esp + 0x30], eax
je 0x56a350
mov esi, dword [edi + 0x10]
jmp 0x56a352
xor esi, esi
cmp dword [ebx + 0x40], 0
jne 0x56a602
mov eax, esi
call fcn.0056a2c0
test eax, eax
je 0x56a602
mov ecx, dword [esi]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
mov ebp, dword [ebx + 0xc]
test ebp, ebp
mov edi, dword [ebx]
mov dword [esp + 0x24], eax
movsx eax, word [eax + 0x1c]
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], eax
jne 0x56a3ae
mov eax, edi
call fcn.0055ca10
mov ebp, eax
test ebp, ebp
mov dword [ebx + 0xc], eax
je 0x56a3ae
push 0
push 0
push 0
push 0x88
call fcn.0055cbe0
add esp, 0x10
mov ecx, dword [esi + 8]
mov eax, dword [ecx + 0x14]
mov edx, dword [eax + 0x44]
test edx, edx
mov esi, 0xfff0bdc0
mov dword [esp + 0x14], eax
mov dword [esp + 0x44], esi
je 0x56a3fa
mov ecx, dword [edi + 4]
test ecx, ecx
mov dword [esp + 0x44], 0
jle 0x56a3f6
mov eax, dword [edi + 8]
add eax, 0xc
lea ecx, [ecx]
cmp dword [eax], edx
je 0x56a3f6
mov esi, dword [esp + 0x44]
add esi, 1
add eax, 0x10
cmp esi, ecx
mov dword [esp + 0x44], esi
jl 0x56a3e0
mov esi, dword [esp + 0x44]
push esi
mov eax, ebx
call fcn.00574560
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
mov eax, dword [eax + 0x14]
add esp, 4
push edx
push 0
push eax
push esi
mov eax, ebx
call fcn.0056fee0
add esp, 0x10
cmp dword [esp + 0x1c], 0
jge 0x56a48f
add dword [ebx + 0x48], 1
mov esi, dword [ebx + 0x48]
push 0
push 0
push esi
push 0x1a
mov eax, ebp
call fcn.0055cbe0
push 0
push esi
mov edi, eax
push 1
push 7
mov eax, ebp
call fcn.0055cbe0
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x34]
push 0x26
push ecx
push edx
push ebx
call fcn.0057a470
mov ecx, dword [ebp + 0x1c]
add esp, 0x30
cmp ecx, edi
mov eax, 1
jle 0x56a66b
mov esi, dword [ebp + 4]
lea edx, [edi + edi*4]
mov dword [esi + edx*4 + 8], ecx
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x20]
mov dword [ecx + 0x18], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x24]
mov eax, dword [eax + 8]
mov edi, ebx
call fcn.00568d90
mov esi, dword [esp + 0x48]
mov dword [esp + 0x2c], eax
call fcn.00568cf0
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov esi, dword [edx + 0xc]
lea ecx, [edi + edi*2]
add ecx, ecx
add ecx, ecx
add ecx, ecx
cmp byte [ecx + esi + 0x16], al
mov dword [esp + 0x38], ecx
je 0x56a4d8
cmp al, 0x62
mov dword [esp + 0x24], 0
jne 0x56a4e0
mov dword [esp + 0x24], 1
mov esi, dword [edx + 0x10]
test esi, esi
je 0x56a5fa
jmp 0x56a4f4
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0x18], 0
jne 0x56a667
cmp dword [esp + 0x24], 0
je 0x56a5fa
mov ecx, dword [esi + 8]
cmp dword [ecx], edi
jne 0x56a5e9
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 8]
mov ecx, dword [ecx + 0xc]
movzx ecx, byte [ecx + 0x4d]
mov edx, dword [esi + 0x2c]
push 0
push ecx
mov ecx, dword [edx]
call fcn.00574ef0
add esp, 8
cmp eax, dword [esp + 0x2c]
jne 0x56a5e9
cmp dword [esp + 0x30], 0
je 0x56a558
cmp dword [esi + 4], 1
jne 0x56a5e9
cmp byte [esi + 0x18], 0
je 0x56a5e9
add dword [ebx + 0x48], 1
mov edi, dword [ebx + 0x48]
push esi
push ebx
call fcn.00574a50
push 0
push 0
mov dword [esp + 0x28], eax
push edi
push 0x1a
mov eax, ebp
call fcn.0055cbe0
push 0
push edi
mov dword [esp + 0x54], eax
push 1
push 7
mov eax, ebp
call fcn.0055cbe0
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x48]
mov ecx, dword [esi + 0x14]
push 0xfffffffffffffff0
push edx
push eax
mov eax, dword [esp + 0x78]
push 0x26
mov edi, ebp
call fcn.0055ccb0
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x6c]
add esp, 0x38
cmp eax, ecx
mov dword [esp + 0x18], 3
jle 0x56a5c6
mov edx, dword [ebp + 4]
lea ecx, [ecx + ecx*4]
mov dword [edx + ecx*4 + 8], eax
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x56a5e9
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x38]
cmp byte [eax + edx + 0x14], 0
jne 0x56a5e9
add dword [ebx + 0x48], 1
mov eax, dword [ebx + 0x48]
mov dword [ecx], eax
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x56a4f0
cmp dword [esp + 0x18], esi
jne 0x56a667
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x48]
fld qword [ebx + 0x1c0]
xor eax, eax
test edx, edx
fstp qword [esp + 0x38]
lea esi, [eax + 2]
je 0x56a620
add dword [ebx + 0x48], 1
mov eax, dword [ebx + 0x48]
mov dword [edx], eax
jmp 0x56a63f
fld1
fstp qword [ebx + 0x1c0]
mov ecx, dword [edi + 8]
cmp word [ecx + 0x1c], 0
jge 0x56a63f
test word [edi + 2], 0x800
jne 0x56a63f
mov esi, 1
xor edx, edx
cmp esi, 1
sete dl
push edx
push eax
push edi
push ebx
call fcn.0056a680
fld qword [esp + 0x48]
fstp qword [ebx + 0x1c0]
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [ecx + 0x18], edx
pop ebx
add esp, 0x30
ret