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

Disassembly:
sub esp, 0xb4
push ebx
xor eax, eax
mov ebx, ecx
push ebp
push esi
push edi
mov edi, edx
mov dword [esp + 0x40], ebx
lea edx, [esp + 0x38]
mov dword [esp + 0x64], eax
mov ecx, edi
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], eax
call fcn.0056d604
test eax, eax
jne 0x56f696
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
cmp edx, 2
jne 0x56ec69
cmp ecx, eax
jne 0x56ec69
jmp 0x56ec3c
mov eax, dword [esp + 0x28]
mov ecx, edi
or eax, dword [esp + 0x2c]
je 0x56ec50
call fcn.0056d79b
test eax, eax
jne 0x56f696
lea edx, [esp + 0x28]
mov ecx, edi
call fcn.0056d604
test eax, eax
je 0x56ec23
jmp 0x56f696
lea edx, [esp + 0x38]
call fcn.0056d604
test eax, eax
jne 0x56f696
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
cmp edx, 3
jne 0x56ed1b
cmp ecx, eax
jne 0x56ed1b
lea ecx, [esp + 0x88]
call fcn.0056d446
push dword [esp + 0xdc]
mov eax, dword [ebx + 0x30]
mov edx, edi
push dword [esp + 0xdc]
mov ecx, dword [ebx + 0x34]
mov dword [esp + 0xc0], eax
lea eax, [esp + 0x90]
push eax
push dword [ebx + 0x3c]
mov dword [esp + 0xcc], ecx
push dword [ebx + 0x38]
mov ecx, dword [esp + 0xdc]
push 8
push dword [esp + 0xe4]
call fcn.0056e967
mov ecx, dword [esp + 0xa8]
mov esi, eax
mov eax, dword [esp + 0xec]
add esp, 0x1c
mov edx, dword [esp + 0xd8]
mov dword [eax], ecx
lea ecx, [esp + 0x88]
call fcn.0056d46f
test esi, esi
je 0x56ed00
mov eax, esi
jmp 0x56f696
lea edx, [esp + 0x38]
mov ecx, edi
call fcn.0056d604
test eax, eax
jne 0x56f696
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov ebp, dword [esp + 0xd4]
cmp edx, 4
jne 0x56ed86
xor eax, eax
cmp ecx, eax
jne 0x56ed86
push ebp
lea eax, [esp + 0x58]
mov edx, edi
push eax
mov eax, dword [esp + 0xd8]
lea esi, [ebx + 0x40]
push esi
mov ecx, ebx
push dword [eax]
push dword [esp + 0xdc]
push 0x40000000
call fcn.0056e7f9
add esp, 0x18
test eax, eax
jne 0x56f696
mov eax, dword [ebx + 0x38]
lea edx, [esp + 0x38]
add dword [esi], eax
mov ecx, edi
mov eax, dword [ebx + 0x3c]
adc dword [esi + 4], eax
call fcn.0056d604
test eax, eax
jne 0x56f696
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov eax, edx
or eax, ecx
jne 0x56ed93
xor eax, eax
jmp 0x56f696
cmp edx, 5
jne 0x56f693
xor eax, eax
cmp ecx, eax
jne 0x56f693
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov ecx, edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
call fcn.0056d73d
test eax, eax
jne 0x56f696
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x48], eax
jmp 0x56f14f
mov esi, dword [esp + 0x38]
mov eax, esi
or eax, dword [esp + 0x3c]
je 0x56f167
lea edx, [esp + 0x28]
mov ecx, edi
call fcn.0056d604
test eax, eax
jne 0x56f696
mov eax, dword [edi + 4]
xor edx, edx
cmp dword [esp + 0x2c], edx
ja 0x56f693
mov ecx, dword [esp + 0x28]
jb 0x56ee15
cmp ecx, eax
ja 0x56f693
cmp dword [esp + 0x3c], edx
ja 0x56f148
cmp esi, 0x100
jae 0x56f148
sub esi, 0xe
je 0x56f0cc
sub esi, 1
je 0x56f0ae
push 2
pop edx
sub esi, edx
je 0x56ef1b
sub esi, 1
je 0x56ef16
sub esi, edx
je 0x56eef0
sub esi, 1
jne 0x56f148
lea esi, [ebx + 0x5c]
mov edx, ebp
mov ecx, esi
call fcn.0056d40f
mov edx, dword [esp + 0x1c]
mov ecx, edi
push ebp
push esi
call fcn.0056d88b
pop ecx
pop ecx
test eax, eax
jne 0x56f696
mov eax, dword [edi + 4]
test eax, eax
je 0x56f693
dec eax
mov dword [edi + 4], eax
mov eax, dword [edi]
mov cl, byte [eax]
inc eax
test cl, cl
mov dword [edi], eax
mov ecx, edi
je 0x56eedf
lea edx, [esp + 0x50]
call fcn.0056d73d
test eax, eax
jne 0x56f696
mov eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0x50]
cmp ecx, dword [eax]
jae 0x56f693
mov edx, dword [esp + 0xcc]
mov eax, dword [edx + ecx*8]
mov dword [esp + 0x74], eax
mov eax, dword [edx + ecx*8 + 4]
lea ecx, [esp + 0x74]
mov dword [esp + 0x78], eax
mov edx, dword [esp + 0x1c]
push ebp
push esi
call fcn.0056d951
pop ecx
jmp 0x56f0be
lea ecx, [ebx + 0x64]
mov eax, dword [esp + 0xd0]
mov edx, dword [esp + 0x1c]
push ebp
push dword [eax]
push dword [esp + 0xd4]
push edi
call fcn.0056ea94
add esp, 0x10
jmp 0x56f0bf
lea ecx, [ebx + 0x6c]
jmp 0x56eef3
test eax, eax
je 0x56f693
dec eax
mov dword [edi + 4], eax
mov eax, dword [edi]
mov dl, byte [eax]
mov byte [esp + 0x11], dl
lea edx, [eax + 1]
cmp byte [esp + 0x11], 0
mov dword [esp + 0x34], edx
mov dword [edi], edx
jne 0x56ef44
lea eax, [ecx - 1]
jmp 0x56ef7c
lea edx, [esp + 0x4c]
mov ecx, edi
call fcn.0056d73d
test eax, eax
jne 0x56f696
mov ecx, dword [esp + 0xd0]
mov eax, dword [esp + 0x4c]
cmp eax, dword [ecx]
jae 0x56f693
mov edx, dword [esp + 0xcc]
mov ecx, dword [edx + eax*8]
mov eax, dword [edx + eax*8 + 4]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x14], eax
test al, 1
jne 0x56f693
mov eax, dword [esp + 0x1c]
mov esi, dword [ebp]
mov ecx, esi
lea eax, [eax*4 + 4]
push eax
push ebp
call dword [0x6a630c]
call esi
mov dword [ebx + 0x7c], eax
pop ecx
pop ecx
test eax, eax
je 0x56f2cb
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x56efc1
xor eax, eax
mov dword [ebx + 0x80], eax
jmp 0x56eff8
mov esi, dword [ebp]
push ecx
push ebp
mov ecx, esi
call dword [0x6a630c]
call esi
pop ecx
pop ecx
mov ecx, eax
mov dword [ebx + 0x80], ecx
test ecx, ecx
je 0x56f2cb
mov eax, dword [esp + 0x14]
push eax
push dword [esp + 0x38]
push ecx
call fcn.0063e5a0
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov esi, dword [ebx + 0x7c]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x80]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esi], eax
mov edx, eax
add esi, 4
cmp dword [esp + 0x24], eax
jne 0x56f027
mov eax, ecx
neg eax
sbb eax, eax
and eax, 0x10
jmp 0x56f094
push 2
pop eax
cmp ecx, eax
jb 0x56f693
mov ebp, dword [esp + 0x14]
cmp byte [ecx + ebp - 2], dl
jne 0x56f693
cmp byte [ecx + ebp - 1], dl
jne 0x56f693
cmp edx, ecx
je 0x56f693
add edx, dword [esp + 0x14]
xor ebp, ebp
cmp word [edx], bp
mov ebp, dword [esp + 0xd4]
je 0x56f071
xor ebx, ebx
add edx, eax
cmp word [edx], bx
jne 0x56f066
mov ebx, dword [esp + 0x40]
sub edx, dword [esp + 0x14]
add edx, eax
mov eax, edx
shr eax, 1
mov dword [esi], eax
add esi, 4
sub dword [esp + 0x24], 1
push 2
pop eax
jne 0x56f04a
xor esi, esi
cmp edx, ecx
push 0x10
pop eax
cmove eax, esi
test eax, eax
jne 0x56f696
cmp byte [esp + 0x11], al
jne 0x56f14f
sub dword [edi + 4], ecx
jmp 0x56f14d
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x48]
push eax
mov ecx, edi
call fcn.0056d817
pop ecx
test eax, eax
jne 0x56f696
jmp 0x56f14f
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x44]
push eax
mov edx, esi
mov ecx, edi
call fcn.0056d817
pop ecx
test eax, eax
jne 0x56f696
mov eax, dword [esp + 0x44]
xor ecx, ecx
mov dword [esp + 0x34], eax
mov edx, ecx
mov dword [esp + 0x20], ecx
test esi, esi
je 0x56f142
mov bl, cl
mov ebp, ecx
mov dword [esp + 0x48], edx
test edx, edx
jne 0x56f10c
mov bl, byte [eax]
push 8
pop edx
dec edx
movzx eax, bl
mov cl, dl
shr eax, cl
mov ecx, dword [esp + 0x34]
and eax, 1
add ebp, eax
cmp dword [esp + 0x48], 0
lea eax, [ecx + 1]
cmovne eax, ecx
mov dword [esp + 0x34], eax
sub esi, 1
jne 0x56f0ff
mov ebx, dword [esp + 0x40]
xor ecx, ecx
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0xd4]
mov dword [esp + 0x48], ecx
jmp 0x56f14f
sub eax, ecx
mov dword [edi + 4], eax
add dword [edi], ecx
lea edx, [esp + 0x38]
mov ecx, edi
call fcn.0056d604
test eax, eax
je 0x56edd5
jmp 0x56f696
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x54]
jne 0x56f693
jmp 0x56f194
mov eax, dword [esp + 0x28]
or eax, dword [esp + 0x2c]
je 0x56f1a8
mov ecx, edi
call fcn.0056d79b
test eax, eax
jne 0x56f696
lea edx, [esp + 0x28]
mov ecx, edi
call fcn.0056d604
test eax, eax
je 0x56f17b
jmp 0x56f696
mov esi, dword [ebp]
xor eax, eax
mov dword [esp + 0x4c], eax
mov edi, eax
mov dword [esp + 0x14], eax
xorps xmm0, xmm0
mov dword [esp + 0x20], eax
mov ecx, esi
mov dword [esp + 0x50], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
mov byte [esp + 0x11], al
mov byte [esp + 0x13], al
mov eax, dword [ebx + 4]
movlpd qword [esp + 0x28], xmm0
mov byte [esp + 0x12], 0x80
lea eax, [eax*4 + 4]
push eax
push ebp
call dword [0x6a630c]
call esi
mov dword [ebx + 0x74], eax
pop ecx
pop ecx
test eax, eax
je 0x56f2cb
mov eax, dword [ebx + 0x48]
test eax, eax
jne 0x56f20c
mov dword [ebx + 0x78], eax
jmp 0x56f22b
mov esi, dword [ebp]
mov ecx, esi
shl eax, 2
push eax
push ebp
call dword [0x6a630c]
call esi
mov dword [ebx + 0x78], eax
pop ecx
pop ecx
test eax, eax
je 0x56f2cb
mov eax, dword [ebx + 0x48]
mov esi, dword [ebp]
mov ecx, esi
lea eax, [eax*8 + 8]
push eax
push ebp
call dword [0x6a630c]
call esi
mov dword [ebx + 0x4c], eax
pop ecx
pop ecx
test eax, eax
je 0x56f2cb
mov eax, dword [ebx + 0x48]
add eax, 7
shr eax, 3
test eax, eax
jne 0x56f261
xor edx, edx
mov dword [ebx + 0x50], edx
jmp 0x56f27b
mov esi, dword [ebp]
mov ecx, esi
push eax
push ebp
call dword [0x6a630c]
call esi
mov dword [ebx + 0x50], eax
pop ecx
pop ecx
test eax, eax
je 0x56f2cb
xor edx, edx
mov eax, dword [ebx + 0x48]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x56f28e
mov dword [ebx + 0x54], edx
mov dword [ebx + 0x58], edx
jmp 0x56f2d4
mov esi, dword [ebp]
add eax, 7
shr eax, 3
mov ecx, esi
push eax
push ebp
call dword [0x6a630c]
call esi
mov dword [ebx + 0x54], eax
pop ecx
pop ecx
test eax, eax
je 0x56f2cb
mov eax, dword [esp + 0x18]
mov esi, dword [ebp]
mov ecx, esi
shl eax, 2
push eax
push ebp
call dword [0x6a630c]
call esi
mov dword [ebx + 0x58], eax
pop ecx
pop ecx
test eax, eax
jne 0x56f2d2
push 2
jmp 0x56f695
xor edx, edx
mov eax, dword [esp + 0x70]
test eax, eax
je 0x56f30a
mov ecx, dword [esp + 0x6c]
dec eax
mov dword [esp + 0x70], eax
mov al, byte [ecx]
inc ecx
mov dword [esp + 0x6c], ecx
test al, al
je 0x56f2f6
mov dword [esp + 0x24], ecx
jmp 0x56f30a
mov eax, dword [esp + 0x58]
add eax, 7
mov dword [esp + 0x50], ecx
shr eax, 3
add eax, ecx
mov dword [esp + 0x24], eax
mov esi, edx
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
cmp dword [esp + 0x1c], edi
jbe 0x56f640
mov cl, byte [esp + 0x12]
mov dword [esp + 0x18], edx
mov dword [esp + 0x38], esi
test cl, cl
jne 0x56f35f
mov eax, dword [ebx + 0x50]
lea ecx, [esi - 1]
mov bl, byte [esp + 0x11]
shr ecx, 3
mov byte [esp + 0x12], 0x80
mov byte [ecx + eax], bl
mov ebx, dword [esp + 0x40]
mov eax, dword [ebx + 0x54]
mov bl, byte [esp + 0x13]
mov byte [ecx + eax], bl
xor eax, eax
mov ebx, dword [esp + 0x40]
mov byte [esp + 0x11], al
mov byte [esp + 0x13], al
mov eax, dword [ebx + 0x4c]
xor ecx, ecx
mov dword [eax + esi*8], ebp
mov dword [eax + esi*8 + 4], edx
mov eax, dword [ebx + 0x58]
mov dword [eax + esi*4], ecx
cmp dword [esp + 0x44], ecx
je 0x56f3f2
mov ecx, esi
mov edx, 0x80
and ecx, 7
mov eax, esi
sar edx, cl
mov ecx, dword [esp + 0x44]
shr eax, 3
test byte [eax + ecx], dl
je 0x56f3f2
cmp dword [esp + 0x48], 0
je 0x56f3cf
mov ecx, dword [esp + 0x4c]
mov edx, 0x80
mov ebx, dword [esp + 0x48]
and ecx, 7
sar edx, cl
mov ecx, dword [esp + 0x4c]
mov eax, ecx
shr eax, 3
test byte [eax + ebx], dl
mov ebx, dword [esp + 0x40]
jne 0x56f3c8
mov al, byte [esp + 0x11]
or al, byte [esp + 0x12]
mov byte [esp + 0x11], al
inc ecx
mov dword [esp + 0x4c], ecx
jmp 0x56f3db
mov al, byte [esp + 0x11]
or al, byte [esp + 0x12]
mov byte [esp + 0x11], al
cmp dword [esp + 0x14], 0
jne 0x56f46e
mov eax, dword [ebx + 0x78]
or dword [eax + esi*4], 0xffffffff
jmp 0x56f604
cmp dword [esp + 0x14], 0
jne 0x56f46e
cmp edi, dword [ebx + 4]
jae 0x56f693
mov eax, dword [ebx + 0x74]
mov dword [eax + edi*4], esi
xor eax, eax
inc eax
cmp dword [esp + 0x5c], 0
mov dword [esp + 0x20], eax
je 0x56f42f
lea edx, [esp + 0x20]
lea ecx, [esp + 0x5c]
call fcn.0056d73d
test eax, eax
jne 0x56f696
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x56f46e
mov eax, dword [ebx + 0x20]
mov edx, dword [esp + 0x18]
movzx ecx, byte [eax + edi]
mov eax, dword [ebx + 0x1c]
add ecx, dword [eax + edi*4]
mov eax, dword [ebx + 0x24]
add ebp, dword [eax + ecx*8]
adc edx, dword [eax + ecx*8 + 4]
mov dword [esp + 0x18], edx
cmp edx, dword [eax + ecx*8 + 4]
jb 0x56f693
ja 0x56f46b
cmp ebp, dword [eax + ecx*8]
jb 0x56f693
inc edi
jmp 0x56f3f9
cmp dword [esp + 0x44], 0
mov eax, dword [ebx + 0x78]
mov dword [eax + esi*4], edi
je 0x56f499
mov ecx, esi
mov edx, 0x80
and ecx, 7
mov eax, esi
sar edx, cl
mov ecx, dword [esp + 0x44]
shr eax, 3
test byte [eax + ecx], dl
jne 0x56f604
sub dword [esp + 0x14], 1
jne 0x56f573
mov eax, dword [ebx + 0x20]
movzx ecx, byte [eax + edi]
mov eax, dword [ebx + 0x1c]
add ecx, dword [eax + edi*4]
mov eax, dword [ebx + 0x24]
mov edx, dword [eax + ecx*8]
mov eax, dword [eax + ecx*8 + 4]
mov ecx, dword [ebx + 0x4c]
mov dword [esp + 0x7c], eax
mov eax, dword [ebx + 0x74]
mov dword [esp + 0x74], edx
mov eax, dword [eax + edi*4]
mov ebx, dword [ecx + eax*8]
sub ebp, dword [ecx + eax*8]
mov dword [esp + 0x80], ebx
mov ebx, dword [ecx + eax*8 + 4]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x7c]
sbb eax, ebx
mov dword [esp + 0x84], ebx
mov ebx, dword [esp + 0x40]
cmp ecx, eax
jb 0x56f693
ja 0x56f504
cmp edx, ebp
jb 0x56f693
mov ebp, dword [esp + 0x80]
add ebp, edx
mov edx, dword [esp + 0x84]
adc edx, ecx
mov dword [esp + 0x18], edx
cmp edx, ecx
jb 0x56f693
ja 0x56f52e
cmp ebp, dword [esp + 0x74]
jb 0x56f693
cmp dword [esp + 0x20], 1
jne 0x56f570
cmp dword [ebx + 0xc], 0
je 0x56f570
mov ecx, edi
mov edx, 0x80
and ecx, 7
mov eax, edi
sar edx, cl
mov ecx, dword [ebx + 0xc]
shr eax, 3
test byte [eax + ecx], dl
mov edx, dword [esp + 0x18]
je 0x56f570
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x58]
mov eax, dword [eax + edi*4]
mov dword [ecx + esi*4], eax
mov al, byte [esp + 0x13]
or al, byte [esp + 0x12]
mov byte [esp + 0x13], al
inc edi
jmp 0x56f5ae
lea edx, [esp + 0x28]
lea ecx, [esp + 0x64]
call fcn.0056d604
test eax, eax
jne 0x56f696
add ebp, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
adc edx, dword [esp + 0x2c]
mov dword [esp + 0x18], edx
cmp edx, dword [esp + 0x2c]
jb 0x56f693
ja 0x56f5ae
cmp ebp, dword [esp + 0x28]
jb 0x56f693
mov cl, byte [esp + 0x12]
test byte [esp + 0x13], cl
jne 0x56f60c
mov eax, dword [esp + 0x24]
test eax, eax
je 0x56f60c
cmp dword [esp + 0x50], 0
je 0x56f5e7
mov eax, dword [esp + 0x34]
mov edx, 0x80
mov ecx, eax
shr eax, 3
and ecx, 7
sar edx, cl
mov ecx, dword [esp + 0x50]
test byte [eax + ecx], dl
je 0x56f600
mov eax, dword [esp + 0x24]
mov ecx, dword [ebx + 0x58]
mov eax, dword [eax]
add dword [esp + 0x24], 4
mov dword [ecx + esi*4], eax
mov al, byte [esp + 0x13]
or al, byte [esp + 0x12]
mov byte [esp + 0x13], al
inc dword [esp + 0x34]
mov edx, dword [esp + 0x18]
mov cl, byte [esp + 0x12]
inc esi
shr cl, 1
mov byte [esp + 0x12], cl
cmp esi, dword [esp + 0x1c]
jb 0x56f326
mov eax, dword [ebx + 0x50]
mov ecx, dword [esp + 0x38]
mov bl, byte [esp + 0x11]
shr ecx, 3
mov byte [ecx + eax], bl
mov ebx, dword [esp + 0x40]
mov eax, dword [ebx + 0x54]
mov bl, byte [esp + 0x13]
mov byte [ecx + eax], bl
mov ebx, dword [esp + 0x40]
cmp dword [esp + 0x14], 0
mov eax, dword [ebx + 0x4c]
mov dword [eax + esi*8], ebp
mov dword [eax + esi*8 + 4], edx
jne 0x56f693
jmp 0x56f672
cmp dword [esp + 0x5c], 0
je 0x56f693
lea edx, [esp + 0x20]
lea ecx, [esp + 0x5c]
call fcn.0056d73d
test eax, eax
jne 0x56f696
cmp dword [esp + 0x20], eax
jne 0x56f693
inc edi
mov eax, dword [ebx + 0x74]
mov dword [eax + edi*4], esi
cmp edi, dword [ebx + 4]
jb 0x56f653
cmp dword [esp + 0x5c], 0
je 0x56ed8c
cmp dword [esp + 0x60], 0
je 0x56ed8c
push 0x10
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb4
ret